Skip to content

Instantly share code, notes, and snippets.

@dalcib
Last active September 20, 2020 15:20
Show Gist options
  • Save dalcib/8cbb71f24cf9fb5d067e21e7bbff46bd to your computer and use it in GitHub Desktop.
Save dalcib/8cbb71f24cf9fb5d067e21e7bbff46bd to your computer and use it in GitHub Desktop.
eslint config
npm i -g eslint eslint-config-universe eslint-plugin-import eslint-plugin-prettier @typescript-eslint/eslint-plugin eslint-plugin-babel prettier @typescript-eslint/parser babel-eslint eslint-plugin-react eslint-plugin-react-hooks eslint-config-prettier
{
"eslintConfig": {
"root": true,
"extends": [
"universe",
"universe/node",
"universe/web",
"universe/native",
"universe/shared/typescript-analysis"
],
"overrides": [
{
"files": [
"*.ts",
"*.tsx",
"*.d.ts"
],
"parserOptions": {
"project": "./tsconfig.json"
}
}
],
"rules": {
"prettier/prettier": ["off"],
"import/order": ["off"],
"no-unused-vars": ["off"],
"@typescript-eslint/no-unused-vars": ["off"]
},
"prettier": {
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"jsxBracketSameLine": true,
"trailingComma": "es5",
"semi": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment