Skip to content

Commit

Permalink
Merge branch 'master' of github.com:atom-ide-community/eslint-config-…
Browse files Browse the repository at this point in the history
…atomic
  • Loading branch information
aminya committed Jul 19, 2020
2 parents a180503 + 9b5b820 commit aaf6409
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
"sourceType": "module"
},
"plugins": ["prettier", "only-warn"],
"extends": ["prettier", "eslint:recommended", "plugin:react/recommended"],
"extends": ["prettier", "eslint:recommended"],
"ignorePatterns": ["node_modules/"],
"overrides": [
{
Expand Down
82 changes: 82 additions & 0 deletions react.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
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", "react", "only-warn"],
"extends": ["prettier", "eslint:recommended", "plugin:react/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", "react", "@typescript-eslint", "only-warn"],
"extends": [
"prettier",
"prettier/@typescript-eslint",
"eslint:recommended",
"plugin:react/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", "only-warn"],
"extends": ["plugin:coffee/eslint-recommended"]
},
{
// YAML files
"files": ["*.yaml", "*.yml"],
"plugins": ["yaml"],
"extends": ["plugin:yaml/recommended"]
}
],
"settings": {
"react": {
"version": "detect"
}
}
}
82 changes: 82 additions & 0 deletions strict-react.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
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", "react"],
"extends": ["prettier", "eslint:recommended", "plugin:react/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", "react", "@typescript-eslint"],
"extends": [
"prettier",
"prettier/@typescript-eslint",
"eslint:recommended",
"plugin:react/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"]
}
],
"settings": {
"react": {
"version": "detect"
}
}
}
2 changes: 1 addition & 1 deletion strict.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
"sourceType": "module"
},
"plugins": ["prettier"],
"extends": ["prettier", "eslint:recommended", "plugin:react/recommended"],
"extends": ["prettier", "eslint:recommended"],
"ignorePatterns": ["node_modules/"],
"overrides": [
{
Expand Down

0 comments on commit aaf6409

Please sign in to comment.