-
Notifications
You must be signed in to change notification settings - Fork 0
/
react.js
25 lines (23 loc) · 822 Bytes
/
react.js
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
var { rules } = require('./typescript')
module.exports = {
extends: [
"eslint-config-react-app"
],
rules: {
...rules,
"jsx-quotes": ["warn", "prefer-single"],
"react/jsx-curly-spacing": ["warn", { "when": "never", "spacing": { "objectLiterals": "never" }, "children": { "when": "never" }, "allowMultiline": true }]
},
overrides: [
{
files: ['**/__test__/**/*.ts', '**/__test__/**/*.tsx', '**/*.test.ts', '**/*.test.tsx'],
rules: {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/consistent-type-assertions": ["error", {
"assertionStyle": "as",
"objectLiteralTypeAssertions": "allow"
}]
}
}
]
}