Skip to content

Instantly share code, notes, and snippets.

@RuyiLi
Last active July 1, 2019 22:32
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 RuyiLi/02bf9e732bfbc247c36fb936a2bb1919 to your computer and use it in GitHub Desktop.
Save RuyiLi/02bf9e732bfbc247c36fb936a2bb1919 to your computer and use it in GitHub Desktop.
my eslint and ts config
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"rules": {
"array-bracket-newline": 2,
"array-bracket-spacing": 2,
"arrow-parens": 2,
"arrow-spacing": 2,
"brace-style": 2,
"camelcase": 2,
"comma-dangle": [
"error",
{
"objects": "always",
"arrays": "never",
"imports": "never",
"exports": "never",
"functions": "never"
}
],
"comma-spacing": 2,
"curly": 2,
"eqeqeq": 2,
"indent": 2,
"jsx-quotes": 2,
"key-spacing": 2,
"keyword-spacing": 2,
"no-unneeded-ternary": 2,
"object-curly-newline": 2,
"object-curly-spacing": 0,
"object-property-newline": 2,
"space-in-parens": 2,
"spaced-comment": 2,
"strict": 2,
"semi": 2
},
"env": {
"node": true
}
}
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": true,
"sourceMap": true,
"outDir": "./dist",
"strict": true,
"moduleResolution": "node"
},
"include": [
"./src/**/*"
],
"exclude": [
"./node_modules/**/*"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment