From 7504a36626a8fbb6051a6b087646f08900966b94 Mon Sep 17 00:00:00 2001 From: Shingo Yamazaki Date: Fri, 8 May 2020 10:43:52 +0900 Subject: [PATCH] style: prettier --- globals/kintone.js | 4 +- lib/base.js | 52 +++++++++++------------ lib/es5.js | 8 ++-- lib/flowtype.js | 8 ++-- lib/kintone.js | 4 +- lib/node-typescript.js | 4 +- lib/node.js | 10 ++--- lib/prettier-flowtype.js | 2 +- lib/prettier-react.js | 2 +- lib/prettier-typescript.js | 2 +- lib/prettier.js | 2 +- lib/react-typescript.js | 4 +- lib/react.js | 26 ++++++------ lib/typescript.js | 6 +-- presets/es5-prettier.js | 2 +- presets/es5.js | 2 +- presets/flowtype.js | 2 +- presets/kintone-customize-es5-prettier.js | 4 +- presets/kintone-customize-es5.js | 2 +- presets/node-prettier.js | 2 +- presets/node-typescript-prettier.js | 4 +- presets/node.js | 2 +- presets/prettier.js | 2 +- presets/react-flowtype-prettier.js | 4 +- presets/react-flowtype.js | 2 +- presets/react-prettier.js | 4 +- presets/react-typescript-prettier.js | 4 +- presets/react-typescript.js | 4 +- presets/react.js | 2 +- presets/typescript-prettier.js | 4 +- presets/typescript.js | 2 +- test/base-test.js | 10 ++--- test/es5-test.js | 6 +-- test/flowtype-test.js | 6 +-- test/globals-kintone-test.js | 4 +- test/kintone-test.js | 4 +- test/node-test.js | 6 +-- test/node-typescript.js | 4 +- test/presets-test.js | 4 +- test/prettier-test.js | 4 +- test/react-test.js | 2 +- test/react-typescript-test.js | 6 +-- test/typescript-test.js | 6 +-- 43 files changed, 122 insertions(+), 122 deletions(-) diff --git a/globals/kintone.js b/globals/kintone.js index 83268bc4..00f6a803 100644 --- a/globals/kintone.js +++ b/globals/kintone.js @@ -13,6 +13,6 @@ module.exports = { Chart: false, DOMPurify: false, Spinner: false, - UltraDate: false - } + UltraDate: false, + }, }; diff --git a/lib/base.js b/lib/base.js index 97ca2e70..07eb49c9 100644 --- a/lib/base.js +++ b/lib/base.js @@ -3,12 +3,12 @@ module.exports = { plugins: ["import"], parserOptions: { ecmaVersion: 2019, - sourceType: "module" + sourceType: "module", }, env: { browser: true, es6: true, - commonjs: true + commonjs: true, }, rules: { // ======= @@ -38,8 +38,8 @@ module.exports = { "error", { allowShortCircuit: true, - allowTernary: true - } + allowTernary: true, + }, ], "no-useless-concat": "error", "no-void": "error", @@ -64,8 +64,8 @@ module.exports = { "valid-typeof": [ "error", { - requireStringLiterals: true - } + requireStringLiterals: true, + }, ], // for-direction // getter-return @@ -103,8 +103,8 @@ module.exports = { "error", { vars: "local", - args: "none" - } + args: "none", + }, ], // no-delete-var // no-undef @@ -114,8 +114,8 @@ module.exports = { "no-confusing-arrow": [ "error", { - allowParens: true - } + allowParens: true, + }, ], "no-useless-computed-key": "error", "no-useless-rename": "error", @@ -155,8 +155,8 @@ module.exports = { "warn", "always", { - null: "ignore" - } + null: "ignore", + }, ], "guard-for-in": "warn", "no-div-regex": "warn", @@ -164,8 +164,8 @@ module.exports = { "no-empty-function": [ "warn", { - allow: ["arrowFunctions", "functions", "methods"] - } + allow: ["arrowFunctions", "functions", "methods"], + }, ], "no-extra-label": "warn", "no-invalid-this": "warn", @@ -194,8 +194,8 @@ module.exports = { "warn", { destructuring: "all", - ignoreReadBeforeAssign: true - } + ignoreReadBeforeAssign: true, + }, ], "prefer-spread": "warn", "rest-spread-spacing": "warn", @@ -223,8 +223,8 @@ module.exports = { "warn", { max: 2, - maxEOF: 1 - } + maxEOF: 1, + }, ], "no-nested-ternary": "warn", "no-trailing-spaces": "warn", @@ -235,8 +235,8 @@ module.exports = { "object-property-newline": [ "warn", { - allowAllPropertiesOnSameLine: true - } + allowAllPropertiesOnSameLine: true, + }, ], "one-var-declaration-per-line": "warn", "operator-assignment": "warn", @@ -244,8 +244,8 @@ module.exports = { "warn", "single", { - allowTemplateLiterals: true - } + allowTemplateLiterals: true, + }, ], semi: "warn", "semi-spacing": "warn", @@ -256,8 +256,8 @@ module.exports = { { anonymous: "never", named: "never", - asyncArrow: "always" - } + asyncArrow: "always", + }, ], "space-in-parens": "warn", "space-infix-ops": "warn", @@ -268,7 +268,7 @@ module.exports = { "unicode-bom": "warn", // eslint-plugin-import - "import/no-duplicates": "warn" + "import/no-duplicates": "warn", // ===== // None @@ -368,5 +368,5 @@ module.exports = { // sort-keys // sort-vars // wrap-regex - } + }, }; diff --git a/lib/es5.js b/lib/es5.js index 7b86ea60..5a7c42e8 100644 --- a/lib/es5.js +++ b/lib/es5.js @@ -8,11 +8,11 @@ module.exports = { extends: ["eslint:recommended"], parserOptions: { ecmaVersion: 5, - sourceType: "script" + sourceType: "script", }, env: { browser: true, - commonjs: true + commonjs: true, }, rules: Object.assign({}, baseRules, { // Disable all rules about ES6 @@ -47,6 +47,6 @@ module.exports = { "sort-imports": "off", "symbol-description": "off", "template-curly-spacing": "off", - "yield-star-spacing": "off" - }) + "yield-star-spacing": "off", + }), }; diff --git a/lib/flowtype.js b/lib/flowtype.js index 4417bcf3..61e827a5 100644 --- a/lib/flowtype.js +++ b/lib/flowtype.js @@ -15,8 +15,8 @@ module.exports = { "error", { allowShortCircuit: true, - allowTernary: true - } + allowTernary: true, + }, ], "flowtype/object-type-delimiter": ["error", "comma"], // flowtype/space-after-type-colon @@ -29,7 +29,7 @@ module.exports = { // Warn // ======= // flowtype/define-flow-type - "flowtype/semi": "warn" + "flowtype/semi": "warn", // flowtype/use-flow-type // ======= @@ -44,5 +44,5 @@ module.exports = { // flowtype/require-valid-file-annotation // flowtype/require-variable-type // flowtype/sort-keys - } + }, }; diff --git a/lib/kintone.js b/lib/kintone.js index 96fad88a..1c410718 100644 --- a/lib/kintone.js +++ b/lib/kintone.js @@ -1,5 +1,5 @@ module.exports = { rules: { - strict: ["error", "function"] - } + strict: ["error", "function"], + }, }; diff --git a/lib/node-typescript.js b/lib/node-typescript.js index 98b18629..4d0a398c 100644 --- a/lib/node-typescript.js +++ b/lib/node-typescript.js @@ -1,5 +1,5 @@ module.exports = { rules: { - "node/no-unsupported-features/es-syntax": "off" - } + "node/no-unsupported-features/es-syntax": "off", + }, }; diff --git a/lib/node.js b/lib/node.js index dc394dec..ee3bdec5 100644 --- a/lib/node.js +++ b/lib/node.js @@ -3,13 +3,13 @@ module.exports = { settings: { node: { // https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-missing-import.md#tryextensions - tryExtensions: [".js", ".json", ".node", ".ts", ".jsx", ".tsx"] - } + tryExtensions: [".js", ".json", ".node", ".ts", ".jsx", ".tsx"], + }, }, rules: { - "no-console": "off" + "no-console": "off", }, parserOptions: { - ecmaVersion: 2020 - } + ecmaVersion: 2020, + }, }; diff --git a/lib/prettier-flowtype.js b/lib/prettier-flowtype.js index 960d9b75..c00bb611 100644 --- a/lib/prettier-flowtype.js +++ b/lib/prettier-flowtype.js @@ -1,3 +1,3 @@ module.exports = { - extends: ["prettier/flowtype"] + extends: ["prettier/flowtype"], }; diff --git a/lib/prettier-react.js b/lib/prettier-react.js index 7361837e..8ca5dfc8 100644 --- a/lib/prettier-react.js +++ b/lib/prettier-react.js @@ -1,3 +1,3 @@ module.exports = { - extends: ["prettier/react"] + extends: ["prettier/react"], }; diff --git a/lib/prettier-typescript.js b/lib/prettier-typescript.js index 5b3c84a4..87e1eb3e 100644 --- a/lib/prettier-typescript.js +++ b/lib/prettier-typescript.js @@ -1,3 +1,3 @@ module.exports = { - extends: ["prettier/@typescript-eslint"] + extends: ["prettier/@typescript-eslint"], }; diff --git a/lib/prettier.js b/lib/prettier.js index 41f5416b..fb057a26 100644 --- a/lib/prettier.js +++ b/lib/prettier.js @@ -1,3 +1,3 @@ module.exports = { - extends: ["plugin:prettier/recommended"] + extends: ["plugin:prettier/recommended"], }; diff --git a/lib/react-typescript.js b/lib/react-typescript.js index c4e3ab03..af0d0e33 100644 --- a/lib/react-typescript.js +++ b/lib/react-typescript.js @@ -1,6 +1,6 @@ module.exports = { rules: { "react/jsx-filename-extension": ["error", { extensions: [".tsx"] }], - "react/prop-types": ["off", {}] - } + "react/prop-types": ["off", {}], + }, }; diff --git a/lib/react.js b/lib/react.js index 0271cf7c..df009f69 100644 --- a/lib/react.js +++ b/lib/react.js @@ -3,13 +3,13 @@ module.exports = { extends: ["plugin:react/recommended"], parserOptions: { ecmaFeatures: { - jsx: true - } + jsx: true, + }, }, settings: { react: { - version: "detect" - } + version: "detect", + }, }, rules: { // ======= @@ -40,7 +40,7 @@ module.exports = { "react/prefer-es6-class": "error", "react/prefer-stateless-function": [ "error", - { ignorePureComponents: true } + { ignorePureComponents: true }, ], // react/prop-types too strict? // react/react-in-jsx-scope @@ -70,9 +70,9 @@ module.exports = { "static-methods", "lifecycle", "everything-else", - "render" - ] - } + "render", + ], + }, ], "react/jsx-boolean-value": "warn", @@ -87,7 +87,7 @@ module.exports = { "react/jsx-no-bind": ["warn", { allowArrowFunctions: true }], "react/jsx-curly-brace-presence": [ "warn", - { props: "never", children: "never" } + { props: "never", children: "never" }, ], "react/jsx-pascal-case": ["warn", { allowAllCaps: true }], "react/jsx-props-no-multi-spaces": "warn", @@ -96,8 +96,8 @@ module.exports = { { closingSlash: "never", beforeSelfClosing: "always", - afterOpening: "never" - } + afterOpening: "never", + }, ], "react/jsx-wrap-multilines": "warn", @@ -175,6 +175,6 @@ module.exports = { "jsx-a11y/role-has-required-aria-props": "warn", "jsx-a11y/role-supports-aria-props": "warn", "jsx-a11y/scope": "warn", - "jsx-a11y/tabindex-no-positive": "warn" - } + "jsx-a11y/tabindex-no-positive": "warn", + }, }; diff --git a/lib/typescript.js b/lib/typescript.js index 7bab1318..e0032d56 100644 --- a/lib/typescript.js +++ b/lib/typescript.js @@ -3,7 +3,7 @@ module.exports = { plugins: ["@typescript-eslint"], extends: [ "plugin:@typescript-eslint/eslint-recommended", - "plugin:@typescript-eslint/recommended" + "plugin:@typescript-eslint/recommended", ], // It's 5〜10x slower with the project setting. // So We disable it until the issue has been fixed @@ -37,11 +37,11 @@ module.exports = { "@typescript-eslint/no-use-before-define": "off", "@typescript-eslint/no-var-requires": "off", "@typescript-eslint/prefer-interface": "off", - "@typescript-eslint/prefer-namespace-keyword": "off" + "@typescript-eslint/prefer-namespace-keyword": "off", // These rules are required type information, // which means these can be checked without parserOptions.project // "@typescript-eslint/no-for-in-array": "error", // "@typescript-eslint/no-unnecessary-type-assertion": "warn", - } + }, }; diff --git a/presets/es5-prettier.js b/presets/es5-prettier.js index a578dbe8..399b38a7 100644 --- a/presets/es5-prettier.js +++ b/presets/es5-prettier.js @@ -1,3 +1,3 @@ module.exports = { - extends: ["../lib/es5.js", "../lib/prettier.js"] + extends: ["../lib/es5.js", "../lib/prettier.js"], }; diff --git a/presets/es5.js b/presets/es5.js index 83ddd493..4904f07e 100644 --- a/presets/es5.js +++ b/presets/es5.js @@ -1,3 +1,3 @@ module.exports = { - extends: ["../lib/es5.js"] + extends: ["../lib/es5.js"], }; diff --git a/presets/flowtype.js b/presets/flowtype.js index b4f2e959..fd721c33 100644 --- a/presets/flowtype.js +++ b/presets/flowtype.js @@ -1,3 +1,3 @@ module.exports = { - extends: ["../lib/base.js", "../lib/flowtype.js"] + extends: ["../lib/base.js", "../lib/flowtype.js"], }; diff --git a/presets/kintone-customize-es5-prettier.js b/presets/kintone-customize-es5-prettier.js index 59db8995..b9800249 100644 --- a/presets/kintone-customize-es5-prettier.js +++ b/presets/kintone-customize-es5-prettier.js @@ -3,6 +3,6 @@ module.exports = { "../lib/es5.js", "../lib/kintone.js", "../globals/kintone.js", - "../lib/prettier.js" - ] + "../lib/prettier.js", + ], }; diff --git a/presets/kintone-customize-es5.js b/presets/kintone-customize-es5.js index a89c5c9a..0c1fb766 100644 --- a/presets/kintone-customize-es5.js +++ b/presets/kintone-customize-es5.js @@ -1,3 +1,3 @@ module.exports = { - extends: ["../lib/es5.js", "../lib/kintone.js", "../globals/kintone.js"] + extends: ["../lib/es5.js", "../lib/kintone.js", "../globals/kintone.js"], }; diff --git a/presets/node-prettier.js b/presets/node-prettier.js index ce783e2c..8bbf5102 100644 --- a/presets/node-prettier.js +++ b/presets/node-prettier.js @@ -1,3 +1,3 @@ module.exports = { - extends: ["../lib/base.js", "../lib/node.js", "../lib/prettier.js"] + extends: ["../lib/base.js", "../lib/node.js", "../lib/prettier.js"], }; diff --git a/presets/node-typescript-prettier.js b/presets/node-typescript-prettier.js index 52e74d69..4c69e2a9 100644 --- a/presets/node-typescript-prettier.js +++ b/presets/node-typescript-prettier.js @@ -5,6 +5,6 @@ module.exports = { "../lib/typescript.js", "../lib/node-typescript.js", "../lib/prettier.js", - "../lib/prettier-typescript.js" - ] + "../lib/prettier-typescript.js", + ], }; diff --git a/presets/node.js b/presets/node.js index ed32cc3b..eda05d44 100644 --- a/presets/node.js +++ b/presets/node.js @@ -1,3 +1,3 @@ module.exports = { - extends: ["../lib/base.js", "../lib/node.js"] + extends: ["../lib/base.js", "../lib/node.js"], }; diff --git a/presets/prettier.js b/presets/prettier.js index 9902250f..a5dfa56f 100644 --- a/presets/prettier.js +++ b/presets/prettier.js @@ -1,3 +1,3 @@ module.exports = { - extends: ["../lib/base.js", "../lib/prettier.js"] + extends: ["../lib/base.js", "../lib/prettier.js"], }; diff --git a/presets/react-flowtype-prettier.js b/presets/react-flowtype-prettier.js index 7d631867..fd1ff898 100644 --- a/presets/react-flowtype-prettier.js +++ b/presets/react-flowtype-prettier.js @@ -5,6 +5,6 @@ module.exports = { "../lib/flowtype.js", "../lib/prettier.js", "../lib/prettier-react.js", - "../lib/prettier-flowtype.js" - ] + "../lib/prettier-flowtype.js", + ], }; diff --git a/presets/react-flowtype.js b/presets/react-flowtype.js index cdfeee32..9521b849 100644 --- a/presets/react-flowtype.js +++ b/presets/react-flowtype.js @@ -1,3 +1,3 @@ module.exports = { - extends: ["../lib/base.js", "../lib/react.js", "../lib/flowtype.js"] + extends: ["../lib/base.js", "../lib/react.js", "../lib/flowtype.js"], }; diff --git a/presets/react-prettier.js b/presets/react-prettier.js index 7e745cca..060dceb1 100644 --- a/presets/react-prettier.js +++ b/presets/react-prettier.js @@ -3,6 +3,6 @@ module.exports = { "../lib/base.js", "../lib/react.js", "../lib/prettier.js", - "../lib/prettier-react.js" - ] + "../lib/prettier-react.js", + ], }; diff --git a/presets/react-typescript-prettier.js b/presets/react-typescript-prettier.js index 169c1c90..3bb8c6f0 100644 --- a/presets/react-typescript-prettier.js +++ b/presets/react-typescript-prettier.js @@ -6,6 +6,6 @@ module.exports = { "../lib/typescript.js", "../lib/prettier.js", "../lib/prettier-react.js", - "../lib/prettier-typescript.js" - ] + "../lib/prettier-typescript.js", + ], }; diff --git a/presets/react-typescript.js b/presets/react-typescript.js index 7cca2cb8..46918db7 100644 --- a/presets/react-typescript.js +++ b/presets/react-typescript.js @@ -3,6 +3,6 @@ module.exports = { "../lib/base.js", "../lib/react.js", "../lib/react-typescript.js", - "../lib/typescript.js" - ] + "../lib/typescript.js", + ], }; diff --git a/presets/react.js b/presets/react.js index 0745b134..767bbc9d 100644 --- a/presets/react.js +++ b/presets/react.js @@ -1,3 +1,3 @@ module.exports = { - extends: ["../lib/base.js", "../lib/react.js"] + extends: ["../lib/base.js", "../lib/react.js"], }; diff --git a/presets/typescript-prettier.js b/presets/typescript-prettier.js index 0fe4c966..480cd25f 100644 --- a/presets/typescript-prettier.js +++ b/presets/typescript-prettier.js @@ -3,6 +3,6 @@ module.exports = { "../lib/base.js", "../lib/typescript.js", "../lib/prettier.js", - "../lib/prettier-typescript.js" - ] + "../lib/prettier-typescript.js", + ], }; diff --git a/presets/typescript.js b/presets/typescript.js index 8101b1fd..3dc99577 100644 --- a/presets/typescript.js +++ b/presets/typescript.js @@ -1,3 +1,3 @@ module.exports = { - extends: ["../lib/base.js", "../lib/typescript.js"] + extends: ["../lib/base.js", "../lib/typescript.js"], }; diff --git a/test/base-test.js b/test/base-test.js index f3adfaf4..baa0c7da 100644 --- a/test/base-test.js +++ b/test/base-test.js @@ -17,9 +17,9 @@ describe("base", () => { "require-atomic-updates", "no-async-promise-executor", "default-param-last", - "prefer-regex-literals" + "prefer-regex-literals", ], - warnings: ["no-useless-return"] + warnings: ["no-useless-return"], }, "warning.js": { warnings: [ @@ -27,10 +27,10 @@ describe("base", () => { "import/no-duplicates", "array-callback-return", "max-params", - "max-nested-callbacks" - ] + "max-nested-callbacks", + ], }, - "ok.js": {} + "ok.js": {}, }); }); }); diff --git a/test/es5-test.js b/test/es5-test.js index ab8e9895..901b087a 100644 --- a/test/es5-test.js +++ b/test/es5-test.js @@ -6,12 +6,12 @@ describe("es5", () => { const result = runLintWithFixtures("es5"); assert.deepStrictEqual(result, { "error.js": { - errors: ["no-unused-vars", "no-redeclare"] + errors: ["no-unused-vars", "no-redeclare"], }, "warning.js": { - warnings: ["array-callback-return"] + warnings: ["array-callback-return"], }, - "ok.js": {} + "ok.js": {}, }); }); }); diff --git a/test/flowtype-test.js b/test/flowtype-test.js index bfd38f3b..59ea7093 100644 --- a/test/flowtype-test.js +++ b/test/flowtype-test.js @@ -8,11 +8,11 @@ describe("flowtype", () => { assert.deepStrictEqual(result, { "ok.js": {}, "error.js": { - errors: ["flowtype/type-id-match"] + errors: ["flowtype/type-id-match"], }, "warning.js": { - warnings: ["flowtype/semi"] - } + warnings: ["flowtype/semi"], + }, }); }); }); diff --git a/test/globals-kintone-test.js b/test/globals-kintone-test.js index 7c82afa7..9ea2cf22 100644 --- a/test/globals-kintone-test.js +++ b/test/globals-kintone-test.js @@ -6,9 +6,9 @@ describe("kintone", () => { const result = runLintWithFixtures("globals-kintone", "globals/kintone.js"); assert.deepStrictEqual(result, { "error.js": { - errors: ["no-undef"] + errors: ["no-undef"], }, - "ok.js": {} + "ok.js": {}, }); }); }); diff --git a/test/kintone-test.js b/test/kintone-test.js index eaf3d588..226e11a3 100644 --- a/test/kintone-test.js +++ b/test/kintone-test.js @@ -6,9 +6,9 @@ describe("kintone", () => { const result = runLintWithFixtures("kintone"); assert.deepStrictEqual(result, { "error.js": { - errors: ["strict", "strict"] + errors: ["strict", "strict"], }, - "ok.js": {} + "ok.js": {}, }); }); }); diff --git a/test/node-test.js b/test/node-test.js index af36cce3..ea9b26bd 100644 --- a/test/node-test.js +++ b/test/node-test.js @@ -8,10 +8,10 @@ describe("node", () => { "error.js": { errors: [ "node/no-missing-require", - "node/no-unsupported-features/es-syntax" - ] + "node/no-unsupported-features/es-syntax", + ], }, - "ok.js": {} + "ok.js": {}, }); }); }); diff --git a/test/node-typescript.js b/test/node-typescript.js index fe1cdb8e..03c65ca3 100644 --- a/test/node-typescript.js +++ b/test/node-typescript.js @@ -11,8 +11,8 @@ describe("node-typescript", () => { "ok.ts": {}, "sum.ts": {}, "error.ts": { - errors: ["node/no-missing-import"] - } + errors: ["node/no-missing-import"], + }, }); }); }); diff --git a/test/presets-test.js b/test/presets-test.js index 0254db1c..85afb47a 100644 --- a/test/presets-test.js +++ b/test/presets-test.js @@ -13,7 +13,7 @@ describe("presets", () => { describe("react", () => { it("should be able to use react as well as lib/base and lib/react", () => { assert.deepStrictEqual(runLintWithFixtures("react", "presets/react.js"), { - "ok.jsx": {} + "ok.jsx": {}, }); assert.deepStrictEqual( runLintWithFixtures("base"), @@ -65,7 +65,7 @@ describe("presets", () => { runLintWithFixtures("kintone", "presets/kintone-customize-es5.js"), { "ok.js": {}, - "error.js": { errors: ["strict", "strict"] } + "error.js": { errors: ["strict", "strict"] }, } ); }); diff --git a/test/prettier-test.js b/test/prettier-test.js index 3758ffc5..9f283671 100644 --- a/test/prettier-test.js +++ b/test/prettier-test.js @@ -7,8 +7,8 @@ describe("prettier", () => { assert.deepStrictEqual(result, { "ok.js": {}, "error.js": { - errors: ["prettier/prettier"] - } + errors: ["prettier/prettier"], + }, }); }); }); diff --git a/test/react-test.js b/test/react-test.js index 548d6d53..dc3bd0b4 100644 --- a/test/react-test.js +++ b/test/react-test.js @@ -6,7 +6,7 @@ describe("react", () => { // We use react presets in order to support ES2017 syntax const result = runLintWithFixtures("react", "presets/react.js"); assert.deepStrictEqual(result, { - "ok.jsx": {} + "ok.jsx": {}, }); }); }); diff --git a/test/react-typescript-test.js b/test/react-typescript-test.js index b04b5ce6..f8b4816c 100644 --- a/test/react-typescript-test.js +++ b/test/react-typescript-test.js @@ -11,11 +11,11 @@ describe("react-typescript", () => { assert.deepStrictEqual(result, { "ok.tsx": {}, "error.tsx": { - errors: ["@typescript-eslint/array-type"] + errors: ["@typescript-eslint/array-type"], }, "warning.tsx": { - warnings: ["@typescript-eslint/no-useless-constructor"] - } + warnings: ["@typescript-eslint/no-useless-constructor"], + }, }); }); }); diff --git a/test/typescript-test.js b/test/typescript-test.js index 63246037..f44884fa 100644 --- a/test/typescript-test.js +++ b/test/typescript-test.js @@ -8,11 +8,11 @@ describe("typescript", () => { assert.deepStrictEqual(result, { "ok.ts": {}, "error.ts": { - errors: ["@typescript-eslint/array-type"] + errors: ["@typescript-eslint/array-type"], }, "warning.ts": { - warnings: ["@typescript-eslint/no-useless-constructor"] - } + warnings: ["@typescript-eslint/no-useless-constructor"], + }, }); }); });