forked from AreWeAntiCheatYet/AreWeAntiCheatYet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
42 lines (42 loc) · 1.05 KB
/
.eslintrc.js
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
41
42
// eslint-disable-next-line no-undef
module.exports = {
env: {
webextensions: true,
browser: true,
es2021: true,
amd: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
settings: {
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
extends: [
'eslint:recommended',
'plugin:react/jsx-runtime',
'plugin:@next/next/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended', // Make sure this is always the last element in the array.
],
plugins: ['react', 'prettier', '@typescript-eslint'],
rules: {
'react/display-name': 'off',
'prettier/prettier': 'error',
'react/self-closing-comp': 'error',
'@next/next/no-img-element': 'off',
'react/no-unescaped-entities': 'off',
'react/jsx-closing-tag-location': 'error',
"prettier/prettier": ["error", { "endOfLine": "off" }],
},
};