File tree 1 file changed +2
-29
lines changed
1 file changed +2
-29
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,8 @@ Linting and formatting configuration shared by Netlify Node.js repositories:
14
14
If you're creating a new repository, you can use the
15
15
[ following GitHub template] ( https://github.com/netlify/node-template ) . Otherwise, please follow those steps:
16
16
17
- - Add a ` .eslintrc.js ` file to the root of the project. Based on the type of the project update the content of the file:
18
-
19
- ### Node.js project
17
+ - Add a ` .eslintrc.js ` file to the root of the project. Individual ` rules ` and ` overrides ` can be tweaked for the
18
+ specific project.
20
19
21
20
``` js
22
21
const { overrides } = require (' @netlify/eslint-config-node' )
@@ -28,32 +27,6 @@ module.exports = {
28
27
}
29
28
```
30
29
31
- ### React application
32
-
33
- ``` js
34
- const { overrides } = require (' @netlify/eslint-config-node/react_config' )
35
-
36
- module .exports = {
37
- extends: ' @netlify/eslint-config-node/react_config' ,
38
- rules: {},
39
- overrides: [... overrides],
40
- }
41
- ```
42
-
43
- ### Vanilla JS in HTML files
44
-
45
- ``` js
46
- const { overrides } = require (' @netlify/eslint-config-node/vanilla_js_config' )
47
-
48
- module .exports = {
49
- extends: ' @netlify/eslint-config-node/vanilla_js_config' ,
50
- rules: {},
51
- overrides: [... overrides],
52
- }
53
- ```
54
-
55
- > Individual ` rules ` and ` overrides ` can be tweaked for the specific project.
56
-
57
30
- Add the following ` .prettierrc.json ` to the root of the project:
58
31
59
32
``` json
You can’t perform that action at this time.
0 commit comments