Files
test/.eslintrc.json
T
Kyle Geib 3b165c42e9 ISSUE-068 - Now Styled-Components can self-label.
Updated babel-plugin-styled-components to a new version that works.
Added extra option to macros settings to not bother showing the file names.
2022-03-14 12:02:12 -05:00

83 lines
1.5 KiB
JSON

{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/jsx-runtime"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 13,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint"
],
"rules": {
"indent": [
"error",
2,
{
"MemberExpression": "off"
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"eol-last": 1,
"object-curly-spacing": [
"warn",
"always"
],
"comma-dangle": [
"error",
"always-multiline"
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
],
"arrow-body-style" : [
"error",
"as-needed"
],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "styled-components",
"message": "Please import from styled-components/macro."
}
],
"patterns": [
"!styled-components/macro"
]
}
]
}
}