Last active
December 5, 2020 06:04
-
-
Save sandalsoft/5c53cf67011733399390bf527f2167fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
parser: `@typescript-eslint/parser`, | |
extends: [ | |
// "plugin:@typescript-eslint/recommended", | |
`prettier/@typescript-eslint`, | |
`plugin:prettier/recommended`, | |
], | |
parserOptions: { | |
ecmaVersion: 2018, | |
sourceType: `module`, | |
ecmaFeatures: { | |
jsx: true, | |
}, | |
}, | |
plugins: [`@typescript-eslint`], | |
settings: { | |
react: { | |
version: `detect`, | |
}, | |
}, | |
rules: { | |
"prettier/prettier": `warn`, | |
indent: `off`, | |
"@typescript-eslint/indent": [`error`, 2], | |
quotes: [`warn`, `backtick`], | |
"comma-dangle": [`error`, `always-multiline`], | |
"arrow-parens": [`warn`, `as-needed`, { requireForBlockBody: true }], | |
}, | |
overrides: [ | |
{ | |
files: [`./**/*.json`], | |
rules: { | |
quotes: [`warn`, `double`], | |
"comma-dangle": [`error`, `never`], | |
}, | |
}, | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment