forked from sql-formatter-org/sql-formatter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
61 lines (61 loc) · 1.86 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"parser": "@typescript-eslint/parser",
"parserOptions": { "project": "./tsconfig.json", "ecmaVersion": 6, "sourceType": "module" },
"extends": ["airbnb-base", "airbnb-typescript/base", "plugin:import/typescript", "prettier"],
"plugins": ["@typescript-eslint", "prettier"],
"globals": {
"document": true,
"sqlFormatter": true
},
"rules": {
"class-methods-use-this": "off",
"consistent-return": "off",
"curly": ["error", "all"],
"eqeqeq": "error",
"func-names": "error",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["test/**", "**/*.test.js", "**/*.test.ts"],
"packageDir": ["./"]
}
],
"no-continue": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-else-return": "off",
"no-use-before-define": "off",
"no-useless-concat": "off",
"no-restricted-syntax": "off",
"no-constant-condition": "off",
"prefer-template": "off",
"default-case": "off",
"import/prefer-default-export": "off",
"import/extensions": ["error", "always"],
"prettier/prettier": ["error"],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/comma-dangle": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/lines-between-class-members": "off",
"@typescript-eslint/naming-convention": "error",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/quotes": [
"error",
"single",
{ "avoidEscape": true, "allowTemplateLiterals": true }
],
"@typescript-eslint/semi": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/consistent-type-exports": "error"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts"]
}
}
},
"env": {
"jest": true
}
}