-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.cjs
30 lines (28 loc) · 850 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
/** @type {import('eslint').ESLint.ConfigData} */
module.exports = {
ignorePatterns: ['.eslintrc.cjs', 'dist/', 'tests/examples/'],
env: {
'shared-node-browser': true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/strict-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked',
],
plugins: ['@typescript-eslint', '@stylistic'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
},
root: true,
rules: {
'@stylistic/semi': ["error", "never"],
'@stylistic/quotes': ["error", "double"],
'eqeqeq': "error",
'no-var': "error",
'prefer-const': "error",
'no-constant-binary-expression': "error",
'no-self-compare': "error",
},
};