Skip to content

Commit a22b4c9

Browse files
authored
Merge pull request #26 from chvmvd/eslint
Eslint
2 parents 05e119d + 16d6277 commit a22b4c9

File tree

10 files changed

+2274
-5
lines changed

10 files changed

+2274
-5
lines changed

.eslintrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:react/recommended",
9+
"plugin:@typescript-eslint/recommended",
10+
"prettier"
11+
],
12+
"overrides": [],
13+
"parser": "@typescript-eslint/parser",
14+
"parserOptions": {
15+
"ecmaVersion": "latest",
16+
"sourceType": "module"
17+
},
18+
"plugins": ["react", "@typescript-eslint"],
19+
"rules": {}
20+
}

.github/workflows/eslint.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: ESLint
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Install modules
13+
run: npm ci
14+
- name: Run ESLint
15+
run: npx eslint . --ext .js,.jsx,.ts,.tsx

babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable */
12
module.exports = {
23
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
34
};

docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable */
12
const math = require("remark-math");
23
const katex = require("rehype-katex");
34

0 commit comments

Comments
 (0)