Skip to content

Instantly share code, notes, and snippets.

@tim-rohrer
Last active October 8, 2021 15:59
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 tim-rohrer/1147ccbe2cc9ca6e772777537305dd95 to your computer and use it in GitHub Desktop.
Save tim-rohrer/1147ccbe2cc9ca6e772777537305dd95 to your computer and use it in GitHub Desktop.
{
"root": true,
"env": {
"browser": false,
"es2021": true,
"jest": true
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".ts"]
}
}
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": [
"@typescript-eslint",
"node",
"prettier"
],
"overrides": [{
"files": "./src/*",
"plugins": ["jest"],
"extends": [
"plugin:jest/recommended",
"plugin:jest/style"
]
}, {
"files": "./test/*",
"extends": [
"plugin:cypress/recommended"
],
"plugins": [
"cypress"
]
}],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"import/extensions": 0,
"lines-between-class-members": ["error", "always", {
"exceptAfterSingleLine": true
}],
"quotes": ["error", "double"],
"prettier/prettier": ["error"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment