Skip to content

Instantly share code, notes, and snippets.

@LawJolla
Created September 16, 2019 17:11
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 LawJolla/6228d8081996b9c3225032468da16075 to your computer and use it in GitHub Desktop.
Save LawJolla/6228d8081996b9c3225032468da16075 to your computer and use it in GitHub Desktop.
Global eslint
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": false,
"codeFrame": false
},
"env": {
"es6": true,
"browser": true,
"jest": true,
"mocha": true,
"cypress/globals": true
},
"extends": ["plugin:@typescript-eslint/recommended"],
"plugins": ["@typescript-eslint","jest", "cypress", "mocha"],
"rules": {
"arrow-parens": ["error", "as-needed"],
"react/prop-types": "warn",
"react/jsx-indent": "off",
"no-unused-vars": "warn",
"no-confusing-arrow": "off",
"no-param-reassign": "warn",
"import/prefer-default-export": "off",
"semi": ["error", "never"],
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx", ".tsx"] }],
"comma-dangle": "off",
"quotes": [1, "backtick"],
"indent": ["off",2],
"@typescript-eslint/indent": ["off",2],
"@typescript-eslint/interface-name-prefix": "off",
"arrow-body-style": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/member-delimiter-style": [0, {
"multiline": {
"delimiter": "none",
"requireLast": false
}
}]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment