Skip to content

Commit ab65bf4

Browse files
committed
docs: Add eslint support
Official guidelines: https://eslint.org/docs/user-guide/getting-started Steps taken: npm install eslint --save-dev npx eslint --init Create .eslintignore Edit .eslintrc.js (tweaks)
1 parent b1bfff5 commit ab65bf4

File tree

4 files changed

+1763
-0
lines changed

4 files changed

+1763
-0
lines changed

docs/.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
build

docs/.eslintrc.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
commonjs: true,
5+
es2021: true,
6+
node: true,
7+
},
8+
extends: ["eslint:recommended", "plugin:react/recommended"],
9+
parserOptions: {
10+
ecmaFeatures: {
11+
jsx: true,
12+
},
13+
ecmaVersion: 2021,
14+
sourceType: "module",
15+
},
16+
plugins: ["react"],
17+
rules: {},
18+
settings: {
19+
react: {
20+
version: "detect",
21+
},
22+
},
23+
};

0 commit comments

Comments
 (0)