Skip to content

Commit d998af7

Browse files
authored
modified: tgui/eslint.config.mjs (ParadiseSS13#26274)
1 parent 3f8aff4 commit d998af7

File tree

1 file changed

+147
-130
lines changed

1 file changed

+147
-130
lines changed

tgui/eslint.config.mjs

Lines changed: 147 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -16,156 +16,173 @@ const compat = new FlatCompat({
1616
allConfig: js.configs.all
1717
});
1818

19-
export default [...compat.extends("prettier"), {
20-
ignores: ["/.yarn/**", "/**/node_modules", "/**/*.bundle.*", "/**/*.chunk.*", "/**/*.hot-update.*", "/packages/inferno/**"],
19+
export default [
20+
...compat.extends('prettier'),
21+
{
22+
ignores: [
23+
'**/.yarn/**',
24+
'**/node_modules',
25+
'**/*.bundle.*',
26+
'**/*.chunk.*',
27+
'**/*.hot-update.*',
28+
'**/packages/inferno/**',
29+
],
2130
plugins: {
22-
prettier,
23-
react: fixupPluginRules(react),
31+
prettier,
32+
react: fixupPluginRules(react),
2433
},
2534

2635
languageOptions: {
27-
globals: {
28-
...globals.browser,
29-
...globals.node,
30-
Byond: "readonly",
31-
},
36+
globals: {
37+
...globals.browser,
38+
...globals.node,
39+
Byond: 'readonly',
40+
},
3241

33-
parser: tsParser,
34-
ecmaVersion: 2020,
35-
sourceType: "module",
42+
parser: tsParser,
43+
ecmaVersion: 2020,
44+
sourceType: 'module',
3645

37-
parserOptions: {
38-
ecmaFeatures: {
39-
jsx: true,
40-
},
46+
parserOptions: {
47+
ecmaFeatures: {
48+
jsx: true,
4149
},
50+
},
4251
},
4352

4453
settings: {
45-
"import/resolver": {
46-
node: {
47-
extensions: [".js", ".jsx", ".ts", ".tsx"],
48-
},
54+
'import/resolver': {
55+
node: {
56+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
4957
},
58+
},
5059

51-
react: {
52-
version: "16.10",
53-
},
60+
react: {
61+
version: '16.10',
62+
},
5463
},
5564

5665
rules: {
57-
"no-async-promise-executor": "error",
58-
"no-cond-assign": "error",
59-
"no-debugger": "error",
60-
"no-dupe-args": "error",
61-
"no-dupe-keys": "error",
62-
"no-duplicate-case": "error",
63-
"no-empty-character-class": "error",
64-
"no-ex-assign": "error",
65-
"no-extra-boolean-cast": "error",
66-
"no-func-assign": "error",
67-
"no-import-assign": "error",
68-
"no-inner-declarations": "error",
69-
"no-invalid-regexp": "error",
70-
"no-irregular-whitespace": "error",
71-
"no-misleading-character-class": "error",
72-
"no-obj-calls": "error",
73-
"no-prototype-builtins": "error",
74-
"no-regex-spaces": "error",
75-
"no-sparse-arrays": "error",
76-
"no-template-curly-in-string": "error",
77-
"no-unsafe-finally": "error",
78-
"no-unsafe-negation": "error",
79-
"use-isnan": "error",
80-
"valid-typeof": "error",
66+
'no-async-promise-executor': 'error',
67+
'no-cond-assign': 'error',
68+
'no-debugger': 'error',
69+
'no-dupe-args': 'error',
70+
'no-dupe-keys': 'error',
71+
'no-duplicate-case': 'error',
72+
'no-empty-character-class': 'error',
73+
'no-ex-assign': 'error',
74+
'no-extra-boolean-cast': 'error',
75+
'no-func-assign': 'error',
76+
'no-import-assign': 'error',
77+
'no-inner-declarations': 'error',
78+
'no-invalid-regexp': 'error',
79+
'no-irregular-whitespace': 'error',
80+
'no-misleading-character-class': 'error',
81+
'no-obj-calls': 'error',
82+
'no-prototype-builtins': 'error',
83+
'no-regex-spaces': 'error',
84+
'no-sparse-arrays': 'error',
85+
'no-template-curly-in-string': 'error',
86+
'no-unsafe-finally': 'error',
87+
'no-unsafe-negation': 'error',
88+
'use-isnan': 'error',
89+
'valid-typeof': 'error',
8190

82-
complexity: ["error", {
83-
max: 50,
84-
}],
91+
complexity: [
92+
'error',
93+
{
94+
max: 50,
95+
},
96+
],
8597

86-
curly: ["error", "multi-line"],
87-
eqeqeq: ["error", "always"],
88-
"no-case-declarations": "error",
89-
"no-empty-pattern": "error",
90-
"no-fallthrough": "error",
91-
"no-global-assign": "error",
92-
"no-octal": "error",
93-
"no-octal-escape": "error",
94-
"no-redeclare": "error",
95-
"no-return-assign": "error",
96-
"no-self-assign": "error",
97-
"no-sequences": "error",
98-
"no-unused-labels": "warn",
99-
"no-useless-escape": "warn",
100-
"no-with": "error",
101-
radix: "error",
102-
strict: "error",
103-
"no-delete-var": "error",
104-
"no-shadow-restricted-names": "error",
105-
"no-undef": "error",
106-
"no-undef-init": "error",
107-
"func-style": ["error", "expression"],
108-
"spaced-comment": ["error", "always"],
109-
"no-class-assign": "error",
110-
"no-const-assign": "error",
111-
"no-dupe-class-members": "error",
112-
"no-new-symbol": "error",
113-
"no-this-before-super": "error",
114-
"no-var": "error",
115-
"prefer-arrow-callback": "error",
116-
"react/boolean-prop-naming": "error",
117-
"react/button-has-type": "error",
118-
"react/default-props-match-prop-types": "error",
119-
"react/no-access-state-in-setstate": "error",
120-
"react/no-children-prop": "error",
121-
"react/no-danger": "error",
122-
"react/no-danger-with-children": "error",
123-
"react/no-deprecated": "error",
124-
"react/no-did-mount-set-state": "error",
125-
"react/no-did-update-set-state": "error",
126-
"react/no-direct-mutation-state": "error",
127-
"react/no-find-dom-node": "error",
128-
"react/no-is-mounted": "error",
129-
"react/no-redundant-should-component-update": "error",
130-
"react/no-render-return-value": "error",
131-
"react/no-typos": "error",
132-
"react/no-string-refs": "error",
133-
"react/no-this-in-sfc": "error",
134-
"react/no-unescaped-entities": "error",
135-
"react/no-unsafe": "error",
136-
"react/no-unused-prop-types": "error",
137-
"react/no-unused-state": "error",
138-
"react/no-will-update-set-state": "error",
139-
"react/prefer-es6-class": "error",
140-
"react/prefer-stateless-function": "error",
141-
"react/require-render-return": "error",
142-
"react/self-closing-comp": "error",
143-
"react/state-in-constructor": "error",
144-
"react/style-prop-object": "error",
145-
"react/void-dom-elements-no-children": "error",
146-
"react/jsx-boolean-value": "error",
147-
"react/jsx-handler-names": "error",
148-
"react/jsx-key": "error",
98+
curly: ['error', 'multi-line'],
99+
eqeqeq: ['error', 'always'],
100+
'no-case-declarations': 'error',
101+
'no-empty-pattern': 'error',
102+
'no-fallthrough': 'error',
103+
'no-global-assign': 'error',
104+
'no-octal': 'error',
105+
'no-octal-escape': 'error',
106+
'no-redeclare': 'error',
107+
'no-return-assign': 'error',
108+
'no-self-assign': 'error',
109+
'no-sequences': 'error',
110+
'no-unused-labels': 'warn',
111+
'no-useless-escape': 'warn',
112+
'no-with': 'error',
113+
radix: 'error',
114+
strict: 'error',
115+
'no-delete-var': 'error',
116+
'no-shadow-restricted-names': 'error',
117+
'no-undef': 'error',
118+
'no-undef-init': 'error',
119+
'func-style': ['error', 'expression'],
120+
'spaced-comment': ['error', 'always'],
121+
'no-class-assign': 'error',
122+
'no-const-assign': 'error',
123+
'no-dupe-class-members': 'error',
124+
'no-new-symbol': 'error',
125+
'no-this-before-super': 'error',
126+
'no-var': 'error',
127+
'prefer-arrow-callback': 'error',
128+
'react/boolean-prop-naming': 'error',
129+
'react/button-has-type': 'error',
130+
'react/default-props-match-prop-types': 'error',
131+
'react/no-access-state-in-setstate': 'error',
132+
'react/no-children-prop': 'error',
133+
'react/no-danger': 'error',
134+
'react/no-danger-with-children': 'error',
135+
'react/no-deprecated': 'error',
136+
'react/no-did-mount-set-state': 'error',
137+
'react/no-did-update-set-state': 'error',
138+
'react/no-direct-mutation-state': 'error',
139+
'react/no-find-dom-node': 'error',
140+
'react/no-is-mounted': 'error',
141+
'react/no-redundant-should-component-update': 'error',
142+
'react/no-render-return-value': 'error',
143+
'react/no-typos': 'error',
144+
'react/no-string-refs': 'error',
145+
'react/no-this-in-sfc': 'error',
146+
'react/no-unescaped-entities': 'error',
147+
'react/no-unsafe': 'error',
148+
'react/no-unused-prop-types': 'error',
149+
'react/no-unused-state': 'error',
150+
'react/no-will-update-set-state': 'error',
151+
'react/prefer-es6-class': 'error',
152+
'react/prefer-stateless-function': 'error',
153+
'react/require-render-return': 'error',
154+
'react/self-closing-comp': 'error',
155+
'react/state-in-constructor': 'error',
156+
'react/style-prop-object': 'error',
157+
'react/void-dom-elements-no-children': 'error',
158+
'react/jsx-boolean-value': 'error',
159+
'react/jsx-handler-names': 'error',
160+
'react/jsx-key': 'error',
149161

150-
"react/jsx-max-depth": ["error", {
151-
max: 10,
152-
}],
162+
'react/jsx-max-depth': [
163+
'error',
164+
{
165+
max: 10,
166+
},
167+
],
153168

154-
"react/jsx-no-comment-textnodes": "error",
155-
"react/jsx-no-duplicate-props": "error",
156-
"react/jsx-no-target-blank": "error",
157-
"react/jsx-no-undef": "error",
158-
"react/jsx-no-useless-fragment": "error",
159-
"react/jsx-fragments": "error",
160-
"react/jsx-pascal-case": "error",
161-
"react/jsx-uses-react": "error",
162-
"react/jsx-uses-vars": "error",
169+
'react/jsx-no-comment-textnodes': 'error',
170+
'react/jsx-no-duplicate-props': 'error',
171+
'react/jsx-no-target-blank': 'error',
172+
'react/jsx-no-undef': 'error',
173+
'react/jsx-no-useless-fragment': 'error',
174+
'react/jsx-fragments': 'error',
175+
'react/jsx-pascal-case': 'error',
176+
'react/jsx-uses-react': 'error',
177+
'react/jsx-uses-vars': 'error',
163178
},
164-
}, {
165-
files: ["**/*.js", "**/*.jsx", "**/*.cjs", "**/*.mjs", "**/*.ts", "**/*.mts", "**/*.cts", "**/*.tsx"],
179+
},
180+
{
181+
files: ['**/*.js', '**/*.jsx', '**/*.cjs', '**/*.mjs', '**/*.ts', '**/*.mts', '**/*.cts', '**/*.tsx'],
166182

167183
rules: {
168-
"no-undef": "off",
169-
"react/jsx-no-undef": "off",
184+
'no-undef': 'off',
185+
'react/jsx-no-undef': 'off',
170186
},
171-
}];
187+
},
188+
];

0 commit comments

Comments
 (0)