Skip to content

Commit

Permalink
[meta] convert eslint config to json
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 5, 2020
1 parent 227d9a2 commit f40c8ae
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 48 deletions.
58 changes: 58 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"root": true,
"plugins": [
"eslint-plugin",
"import",
],
"extends": [
"eslint:recommended",
"plugin:eslint-plugin/recommended",
"plugin:import/recommended",
],
"env": {
"node": true,
"es6": true,
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
},
"rules": {
"max-len": [1, 99, 2],
"semi": [2, "never"],
"curly": [2, "multi-line"],
"comma-dangle": [2, "always-multiline"],
"eol-last": [2, "always"],
"eqeqeq": [2, "allow-null"],
"no-shadow": 1,
"quotes": [2, "single", {
"allowTemplateLiterals": true,
"avoidEscape": true,
}],
"eslint-plugin/consistent-output": [
"error",
"always",
],
"eslint-plugin/meta-property-ordering": "error",
"eslint-plugin/no-deprecated-context-methods": "error",
"eslint-plugin/no-deprecated-report-api": "off",
"eslint-plugin/prefer-replace-text": "error",
"eslint-plugin/report-message-format": "error",
"eslint-plugin/require-meta-schema": "error",
"eslint-plugin/require-meta-type": "error",

// dog fooding
"import/no-extraneous-dependencies": "error",
"import/unambiguous": "off",
},

"settings": {
"import/resolver": {
"node": {
"paths": [
"src",
],
},
},
},
}
48 changes: 0 additions & 48 deletions .eslintrc.yml

This file was deleted.

0 comments on commit f40c8ae

Please sign in to comment.