Skip to content

Instantly share code, notes, and snippets.

@sandalsoft
Last active December 5, 2020 06:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandalsoft/5c53cf67011733399390bf527f2167fe to your computer and use it in GitHub Desktop.
Save sandalsoft/5c53cf67011733399390bf527f2167fe to your computer and use it in GitHub Desktop.
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