Skip to content

Commit

Permalink
feat: add strict version
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jul 18, 2020
1 parent 84041bf commit bd13bef
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions strict.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
module.exports = {
// JS Files
"root": true,
"env": {
"atomtest": true,
"es6": true,
"node": true,
"browser": true,
"jasmine": true
},
"globals": {
"atom": "readonly",
"measure": "readonly"
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["prettier"],
"extends": ["prettier", "eslint:recommended"],
"ignorePatterns": ["node_modules/"],
"overrides": [
{
// Bundled node version with atom has an old ESLint
// TypeScript files
"files": ["**/*.ts", "**/*.tsx"],
"parser": "@typescript-eslint/parser",
"plugins": ["prettier", "@typescript-eslint"],
"extends": [
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/member-delimiter-style": "off"
}
},
{
// JSON files
"files": ["*.json"],
"plugins": ["json"],
"extends": ["prettier", "plugin:json/recommended"],
"rules": {
"json/*": [
"error",
{
"allowComments": true
}
]
}
},
{
// CoffeeScript files
"files": ["**/*.coffee"],
"parser": "eslint-plugin-coffee",
"plugins": ["coffee"],
"extends": ["plugin:coffee/eslint-recommended"]
},
{
// YAML files
"files": ["*.yaml", "*.yml"],
"plugins": ["yaml"],
"extends": ["plugin:yaml/recommended"]
}
]
}

0 comments on commit bd13bef

Please sign in to comment.