forked from ansible/ansible-hub-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
38 lines (37 loc) · 1.3 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
{
env: {
"browser": true,
"node": true,
"es2021": true,
},
parser: "@typescript-eslint/parser",
settings: {
"react": {
"version": "detect",
},
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
parserOptions: {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
},
},
globals: {
// overridden in test/.eslintrc
APPLICATION_NAME: "readonly",
NAMESPACE_TERM: "readonly",
},
rules: {
"curly": ["error", "all"],
"eol-last": ["error", "always"],
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
/// FIXME: Rules to add from previous config (see #860)
// array-bracket-spacing camelcase comma-dangle comma-spacing comma-style curly dot-notation eol-last eqeqeq func-names indent key-spacing keyword-spacing linebreak-style max-len new-cap no-bitwise no-caller no-mixed-spaces-and-tabs no-multiple-empty-lines no-trailing-spaces no-undef no-unused-vars no-use-before-define no-var no-with object-curly-spacing object-shorthand one-var padding-line-between-statements quote-props quotes react/jsx-curly-spacing semi space-before-blocks space-in-parens space-infix-ops space-unary-ops vars-on-top wrap-iife yoda
},
}