forked from invertase/docs.page
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
40 lines (40 loc) · 1.13 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2020,
// Allows for the parsing of modern ECMAScript features
"sourceType": "module"
// Allows for the use of imports
},
"settings": {
"react": {
"version": "17.0.0"
}
},
"env": {
"es6": true,
"node": true
},
"rules": {
"react/no-unescaped-entities": 0,
"react/display-name": 0,
// All images are from remote sources
"@next/next/no-img-element": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-non-null-assertion": 0,
// suppress errors for missing 'import React' in files
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
// allow jsx syntax in js files (for next.js project)
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }]
}
}