Skip to content

Instantly share code, notes, and snippets.

@mysticatea
Last active April 8, 2019 12:42
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 mysticatea/14deeee23dc44b8d7b650d8b9aedc697 to your computer and use it in GitHub Desktop.
Save mysticatea/14deeee23dc44b8d7b650d8b9aedc697 to your computer and use it in GitHub Desktop.
[
{
"name": ".eslintrc.js » eslint-config-eslint » ./default.yml » eslint:recommended",
"filePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\conf\\eslint-recommended.js",
"criteria": null,
"rules": {
"constructor-super": "error",
"for-direction": "error",
"getter-return": "error",
"no-case-declarations": "error",
"no-class-assign": "error",
"no-compare-neg-zero": "error",
"no-cond-assign": "error",
"no-console": "error",
"no-const-assign": "error",
"no-constant-condition": "error",
"no-control-regex": "error",
"no-debugger": "error",
"no-delete-var": "error",
"no-dupe-args": "error",
"no-dupe-class-members": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty": "error",
"no-empty-character-class": "error",
"no-empty-pattern": "error",
"no-ex-assign": "error",
"no-extra-boolean-cast": "error",
"no-extra-semi": "error",
"no-fallthrough": "error",
"no-func-assign": "error",
"no-global-assign": "error",
"no-inner-declarations": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-mixed-spaces-and-tabs": "error",
"no-new-symbol": "error",
"no-obj-calls": "error",
"no-octal": "error",
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-self-assign": "error",
"no-sparse-arrays": "error",
"no-this-before-super": "error",
"no-undef": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"no-unused-labels": "error",
"no-unused-vars": "error",
"no-useless-escape": "error",
"require-yield": "error",
"use-isnan": "error",
"valid-typeof": "error"
}
},
{
"name": ".eslintrc.js » eslint-config-eslint » ./default.yml » plugin:node/recommended",
"filePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\node_modules\\eslint-plugin-node\\lib\\index.js",
"criteria": null,
"env": {"es6": true, "node": true},
"globals": {"Atomics": false, "SharedArrayBuffer": false},
"parserOptions": {"ecmaVersion": 2019},
"plugins": {
"node": {
"error": null,
"filePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\node_modules\\eslint-plugin-node\\lib\\index.js",
"id": "node",
"importerName": ".eslintrc.js » eslint-config-eslint » ./default.yml » plugin:node/recommended",
"importerPath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\node_modules\\eslint-plugin-node\\lib\\index.js"
}
},
"rules": {
"no-process-exit": "error",
"node/exports-style": "off",
"node/no-deprecated-api": "error",
"node/no-extraneous-import": "off",
"node/no-extraneous-require": "error",
"node/no-missing-import": "off",
"node/no-missing-require": "error",
"node/no-unpublished-bin": "error",
"node/no-unpublished-import": "off",
"node/no-unpublished-require": "error",
"node/no-unsupported-features/es-builtins": "error",
"node/no-unsupported-features/es-syntax": "error",
"node/no-unsupported-features/node-builtins": "error",
"node/prefer-global/buffer": "off",
"node/prefer-global/console": "off",
"node/prefer-global/process": "off",
"node/prefer-global/text-decoder": "off",
"node/prefer-global/text-encoder": "off",
"node/prefer-global/url-search-params": "off",
"node/prefer-global/url": "off",
"node/process-exit-as-throw": "error",
"node/shebang": "error"
}
},
{
"name": ".eslintrc.js » eslint-config-eslint » ./default.yml",
"filePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\packages\\eslint-config-eslint\\default.yml",
"criteria": null,
"rules": {
"array-bracket-spacing": "error",
"array-callback-return": "error",
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": "error",
"indent": [
"error",
4,
{
"SwitchCase": 1,
"flatTernaryExpressions": false,
"ignoreComments": false
}
],
"block-spacing": "error",
"brace-style": ["error", "1tbs"],
"camelcase": "error",
"callback-return": ["error", ["cb", "callback", "next"]],
"class-methods-use-this": "error",
"comma-dangle": "error",
"comma-spacing": "error",
"comma-style": ["error", "last"],
"computed-property-spacing": "error",
"consistent-return": "error",
"curly": ["error", "all"],
"default-case": "error",
"dot-location": ["error", "property"],
"dot-notation": [
"error",
{"allowKeywords": true, "allowPattern": ""}
],
"eol-last": "error",
"eqeqeq": "error",
"func-call-spacing": "error",
"func-style": ["error", "declaration"],
"function-paren-newline": ["error", "consistent"],
"generator-star-spacing": "error",
"guard-for-in": "error",
"handle-callback-err": ["error", "err"],
"key-spacing": [
"error",
{"beforeColon": false, "afterColon": true}
],
"keyword-spacing": "error",
"lines-around-comment": [
"error",
{
"beforeBlockComment": true,
"afterBlockComment": false,
"beforeLineComment": true,
"afterLineComment": false,
"allowBlockStart": false,
"allowBlockEnd": false
}
],
"max-len": [
"error",
160,
{
"ignoreComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"max-statements-per-line": "error",
"new-cap": "error",
"new-parens": "error",
"no-alert": "error",
"no-array-constructor": "error",
"no-async-promise-executor": "error",
"no-buffer-constructor": "error",
"no-caller": "error",
"no-confusing-arrow": "error",
"no-console": "error",
"no-delete-var": "error",
"no-else-return": ["error", {"allowElseIf": false}],
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-fallthrough": "error",
"no-floating-decimal": "error",
"no-global-assign": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-mixed-requires": "error",
"no-mixed-spaces-and-tabs": ["error", false],
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-multiple-empty-lines": [
"error",
{"max": 2, "maxBOF": 0, "maxEOF": 0}
],
"no-nested-ternary": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-require": "error",
"no-new-wrappers": "error",
"no-octal": "error",
"no-octal-escape": "error",
"no-param-reassign": "error",
"no-path-concat": "error",
"no-process-exit": "error",
"no-proto": "error",
"no-prototype-builtins": "error",
"no-redeclare": "error",
"no-restricted-properties": [
"error",
{
"property": "substring",
"message": "Use .slice instead of .substring."
},
{
"property": "substr",
"message": "Use .slice instead of .substr."
},
{
"object": "assert",
"property": "equal",
"message": "Use assert.strictEqual instead of assert.equal."
},
{
"object": "assert",
"property": "notEqual",
"message": "Use assert.notStrictEqual instead of assert.notEqual."
},
{
"object": "assert",
"property": "deepEqual",
"message": "Use assert.deepStrictEqual instead of assert.deepEqual."
},
{
"object": "assert",
"property": "notDeepEqual",
"message": "Use assert.notDeepStrictEqual instead of assert.notDeepEqual."
}
],
"no-return-assign": "error",
"no-script-url": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow": "error",
"no-shadow-restricted-names": "error",
"no-tabs": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef": ["error", {"typeof": true}],
"no-undef-init": "error",
"no-undefined": "error",
"no-underscore-dangle": [
"error",
{
"allowAfterThis": true,
"allowAfterSuper": false,
"enforceInMethodNames": false
}
],
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",
"no-unused-vars": ["error", {"vars": "all", "args": "after-used"}],
"no-use-before-define": "error",
"no-useless-call": "error",
"no-useless-catch": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-escape": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-whitespace-before-property": "error",
"no-with": "error",
"no-var": "error",
"object-curly-newline": [
"error",
{"consistent": true, "multiline": true}
],
"object-curly-spacing": ["error", "always"],
"object-property-newline": [
"error",
{
"allowAllPropertiesOnSameLine": true,
"allowMultiplePropertiesPerLine": false
}
],
"object-shorthand": "error",
"one-var-declaration-per-line": "error",
"operator-assignment": "error",
"operator-linebreak": "error",
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": ["const", "let", "var"],
"next": "*"
},
{
"blankLine": "any",
"prev": ["const", "let", "var"],
"next": ["const", "let", "var"]
}
],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-numeric-literals": "error",
"prefer-promise-reject-errors": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"quotes": ["error", "double", {"avoidEscape": true}],
"quote-props": ["error", "as-needed"],
"radix": "error",
"require-atomic-updates": "error",
"require-jsdoc": "error",
"require-unicode-regexp": "error",
"rest-spread-spacing": "error",
"semi": "error",
"semi-spacing": ["error", {"before": false, "after": true}],
"semi-style": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": ["error", {"words": true, "nonwords": false}],
"spaced-comment": ["error", "always", {"exceptions": ["-"]}],
"strict": ["error", "global"],
"switch-colon-spacing": "error",
"symbol-description": "error",
"template-curly-spacing": ["error", "never"],
"template-tag-spacing": "error",
"unicode-bom": "error",
"valid-jsdoc": [
"error",
{
"prefer": {"return": "returns"},
"preferType": {
"String": "string",
"Number": "number",
"Boolean": "boolean",
"array": "Array",
"object": "Object",
"function": "Function"
},
"requireReturn": true,
"requireParamDescription": true,
"requireReturnDescription": true,
"requireReturnType": true,
"requireParamType": true
}
],
"wrap-iife": "error",
"yield-star-spacing": "error",
"yoda": ["error", "never"]
}
},
{
"name": ".eslintrc.js » eslint-config-eslint",
"filePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\packages\\eslint-config-eslint\\index.js",
"criteria": null
},
{
"name": ".eslintrc.js » plugin:eslint-plugin/recommended",
"filePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\node_modules\\eslint-plugin-eslint-plugin\\lib\\index.js",
"criteria": null,
"rules": {
"eslint-plugin/fixer-return": "error",
"eslint-plugin/no-deprecated-report-api": "error",
"eslint-plugin/no-identical-tests": "error",
"eslint-plugin/no-missing-placeholders": "error",
"eslint-plugin/no-unused-placeholders": "error",
"eslint-plugin/no-useless-token-range": "error",
"eslint-plugin/require-meta-fixable": "error"
}
},
{
"name": ".eslintrc.js",
"filePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\.eslintrc.js",
"criteria": null,
"plugins": {
"eslint-plugin": {
"error": null,
"filePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\node_modules\\eslint-plugin-eslint-plugin\\lib\\index.js",
"id": "eslint-plugin",
"importerName": ".eslintrc.js",
"importerPath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\.eslintrc.js"
},
"internal-rules": {
"error": null,
"filePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\tools\\internal-rules\\index.js",
"id": "internal-rules",
"importerName": ".eslintrc.js",
"importerPath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\.eslintrc.js"
}
},
"root": true,
"rules": {
"eslint-plugin/consistent-output": "error",
"eslint-plugin/no-deprecated-context-methods": "error",
"eslint-plugin/prefer-output-null": "error",
"eslint-plugin/prefer-placeholders": "error",
"eslint-plugin/report-message-format": ["error", "[^a-z].*\\.$"],
"eslint-plugin/require-meta-type": "error",
"eslint-plugin/test-case-property-ordering": [
"error",
[
"filename",
"code",
"output",
"options",
"parser",
"parserOptions",
"globals",
"env",
"errors"
]
],
"eslint-plugin/test-case-shorthand-strings": "error",
"internal-rules/multiline-comment-style": "error"
}
},
{
"name": ".eslintrc.js#overrides[0]",
"filePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\.eslintrc.js",
"criteria": {
"includes": ["lib/rules/*", "tools/internal-rules/*"],
"excludes": ["tools/internal-rules/index.js"],
"basePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint"
},
"rules": {
"internal-rules/no-invalid-meta": "error",
"internal-rules/consistent-docs-description": "error"
}
},
{
"name": ".eslintrc.js#overrides[1]",
"filePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\.eslintrc.js",
"criteria": {
"includes": ["tools/internal-rules/*"],
"excludes": null,
"basePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint"
},
"rules": {"node/no-unpublished-require": "off"}
},
{
"name": ".eslintrc.js#overrides[2]",
"filePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\.eslintrc.js",
"criteria": {
"includes": ["lib/rules/*"],
"excludes": null,
"basePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint"
},
"rules": {"internal-rules/consistent-docs-url": "error"}
},
{
"name": ".eslintrc.js#overrides[3]",
"filePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint\\.eslintrc.js",
"criteria": {
"includes": ["tests/**/*"],
"excludes": null,
"basePath": "C:\\Users\\t-nagashima.AD\\dev\\eslint"
},
"env": {"mocha": true},
"rules": {
"no-restricted-syntax": [
"error",
{
"selector": "CallExpression[callee.object.name='assert'][callee.property.name='doesNotThrow']",
"message": "`assert.doesNotThrow()` should be replaced with a comment next to the code."
}
]
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment