forked from coolpace/V2EX_Polish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
39 lines (34 loc) · 861 Bytes
/
.eslintrc.cjs
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
const { TYPESCRIPT_FILES } = require('prefer-code-style/constants')
module.exports = {
root: true,
env: {
browser: true,
webextensions: true,
jquery: true,
},
extends: [
require.resolve('prefer-code-style/eslint/browser'),
require.resolve('prefer-code-style/eslint/node'),
require.resolve('prefer-code-style/eslint/typescript'),
],
ignorePatterns: [
'dist/**/*',
'build*/**/*',
'extension/scripts/**/*.min.js',
'src/user-scripts/style.ts',
'website/**/*',
],
overrides: [
{
files: TYPESCRIPT_FILES,
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
},
extends: [require.resolve('prefer-code-style/eslint/rules/typescript-prefer-strict')],
rules: {
'@typescript-eslint/prefer-readonly-parameter-types': 0,
},
},
],
}