Skip to content

Commit

Permalink
wip: Enable to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoki Kobayashi committed Jan 18, 2022
1 parent cb2b8e8 commit 4efdd69
Show file tree
Hide file tree
Showing 20 changed files with 919 additions and 1,482 deletions.
2 changes: 1 addition & 1 deletion .scaffdog/eslint-plugin-wantedly-rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const RULE = linter.getRules().get(RULE_NAME) as Rule.RuleModule;
import { RuleTester } from "eslint";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import ESLintConfigWantedly from "eslint-config-wantedly/without-react";
import ESLintConfigWantedly from "eslint-config-wantedly-typescript";
import { RULE, RULE_NAME } from "../{{ input }}";

new RuleTester({
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"@types/eslint": "^7.2.13",
"@types/estree": "^0.0.50",
"@types/graphql": "^14.5.0",
"@types/jest": "^26.0.23",
"jest": "^26.6.3",
"@types/jest": "^27.4.0",
"jest": "^27.4.7",
"lerna": "^4.0.0",
"lerna-changelog": "^1.0.1",
"mock-fs": "^5.0.0",
"pacote": "^11.3.4",
"scaffdog": "^1.0.1",
"ts-jest": "^26.5.6",
"ts-jest": "^27.1.3",
"typescript": "^4.4.0"
},
"workspaces": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ exports[`eslint-config-wantedly-typescript should match snapshot for: env 1`] =
Object {
"browser": true,
"es6": true,
"jest/globals": true,
"node": true,
}
`;
Expand Down Expand Up @@ -37,9 +36,7 @@ Array [
"react-hooks",
"react",
"use-macros",
"@typescript-eslint",
"prettier",
"jest",
"jsx-a11y",
"import",
]
Expand All @@ -55,15 +52,6 @@ Object {
"@babel/semi": Array [
"off",
],
"@typescript-eslint/adjacent-overload-signatures": Array [
"error",
],
"@typescript-eslint/ban-ts-comment": Array [
"error",
],
"@typescript-eslint/ban-types": Array [
"error",
],
"@typescript-eslint/brace-style": Array [
"off",
],
Expand Down Expand Up @@ -105,18 +93,9 @@ Object {
"@typescript-eslint/no-array-constructor": Array [
"error",
],
"@typescript-eslint/no-empty-function": Array [
"error",
],
"@typescript-eslint/no-empty-interface": Array [
"error",
],
"@typescript-eslint/no-explicit-any": Array [
"off",
],
"@typescript-eslint/no-extra-non-null-assertion": Array [
"error",
],
"@typescript-eslint/no-extra-parens": Array [
"off",
],
Expand All @@ -126,27 +105,9 @@ Object {
"@typescript-eslint/no-floating-promises": Array [
"error",
],
"@typescript-eslint/no-inferrable-types": Array [
"error",
],
"@typescript-eslint/no-misused-new": Array [
"error",
],
"@typescript-eslint/no-namespace": Array [
"error",
],
"@typescript-eslint/no-non-null-asserted-optional-chain": Array [
"error",
],
"@typescript-eslint/no-non-null-assertion": Array [
"warn",
],
"@typescript-eslint/no-redeclare": Array [
"error",
],
"@typescript-eslint/no-this-alias": Array [
"error",
],
"@typescript-eslint/no-unused-vars": Array [
"error",
Object {
Expand All @@ -161,18 +122,9 @@ Object {
"@typescript-eslint/no-useless-constructor": Array [
"off",
],
"@typescript-eslint/no-var-requires": Array [
"error",
],
"@typescript-eslint/object-curly-spacing": Array [
"off",
],
"@typescript-eslint/prefer-as-const": Array [
"error",
],
"@typescript-eslint/prefer-namespace-keyword": Array [
"error",
],
"@typescript-eslint/quotes": Array [
0,
],
Expand All @@ -186,9 +138,6 @@ Object {
"@typescript-eslint/space-infix-ops": Array [
"off",
],
"@typescript-eslint/triple-slash-reference": Array [
"error",
],
"@typescript-eslint/type-annotation-spacing": Array [
"off",
],
Expand Down Expand Up @@ -477,9 +426,6 @@ Object {
"no-empty-character-class": Array [
"error",
],
"no-empty-function": Array [
"off",
],
"no-empty-pattern": Array [
"error",
],
Expand Down Expand Up @@ -507,9 +453,6 @@ Object {
"no-global-assign": Array [
"error",
],
"no-import-assign": Array [
"off",
],
"no-inner-declarations": Array [
"error",
],
Expand Down Expand Up @@ -585,9 +528,6 @@ Object {
"no-self-assign": Array [
"error",
],
"no-setter-return": Array [
"off",
],
"no-shadow": Array [
"off",
],
Expand Down Expand Up @@ -642,9 +582,6 @@ Object {
"no-useless-escape": Array [
"off",
],
"no-var": Array [
"error",
],
"no-whitespace-before-property": Array [
"off",
],
Expand Down Expand Up @@ -678,12 +615,6 @@ Object {
"prefer-const": Array [
"warn",
],
"prefer-rest-params": Array [
"error",
],
"prefer-spread": Array [
"error",
],
"prefer-template": Array [
"warn",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ exports[`eslint-config-wantedly-typescript/without-react should match snapshot f
Object {
"browser": true,
"es6": true,
"jest/globals": true,
"node": true,
}
`;
Expand Down Expand Up @@ -34,9 +33,7 @@ Object {
exports[`eslint-config-wantedly-typescript/without-react should match snapshot for: plugins 1`] = `
Array [
"use-macros",
"@typescript-eslint",
"prettier",
"jest",
"jsx-a11y",
"import",
]
Expand All @@ -52,15 +49,6 @@ Object {
"@babel/semi": Array [
"off",
],
"@typescript-eslint/adjacent-overload-signatures": Array [
"error",
],
"@typescript-eslint/ban-ts-comment": Array [
"error",
],
"@typescript-eslint/ban-types": Array [
"error",
],
"@typescript-eslint/brace-style": Array [
"off",
],
Expand Down Expand Up @@ -102,18 +90,9 @@ Object {
"@typescript-eslint/no-array-constructor": Array [
"error",
],
"@typescript-eslint/no-empty-function": Array [
"error",
],
"@typescript-eslint/no-empty-interface": Array [
"error",
],
"@typescript-eslint/no-explicit-any": Array [
"off",
],
"@typescript-eslint/no-extra-non-null-assertion": Array [
"error",
],
"@typescript-eslint/no-extra-parens": Array [
"off",
],
Expand All @@ -123,27 +102,9 @@ Object {
"@typescript-eslint/no-floating-promises": Array [
"error",
],
"@typescript-eslint/no-inferrable-types": Array [
"error",
],
"@typescript-eslint/no-misused-new": Array [
"error",
],
"@typescript-eslint/no-namespace": Array [
"error",
],
"@typescript-eslint/no-non-null-asserted-optional-chain": Array [
"error",
],
"@typescript-eslint/no-non-null-assertion": Array [
"warn",
],
"@typescript-eslint/no-redeclare": Array [
"error",
],
"@typescript-eslint/no-this-alias": Array [
"error",
],
"@typescript-eslint/no-unused-vars": Array [
"error",
Object {
Expand All @@ -158,18 +119,9 @@ Object {
"@typescript-eslint/no-useless-constructor": Array [
"off",
],
"@typescript-eslint/no-var-requires": Array [
"error",
],
"@typescript-eslint/object-curly-spacing": Array [
"off",
],
"@typescript-eslint/prefer-as-const": Array [
"error",
],
"@typescript-eslint/prefer-namespace-keyword": Array [
"error",
],
"@typescript-eslint/quotes": Array [
0,
],
Expand All @@ -183,9 +135,6 @@ Object {
"@typescript-eslint/space-infix-ops": Array [
"off",
],
"@typescript-eslint/triple-slash-reference": Array [
"error",
],
"@typescript-eslint/type-annotation-spacing": Array [
"off",
],
Expand Down Expand Up @@ -474,9 +423,6 @@ Object {
"no-empty-character-class": Array [
"error",
],
"no-empty-function": Array [
"off",
],
"no-empty-pattern": Array [
"error",
],
Expand Down Expand Up @@ -504,9 +450,6 @@ Object {
"no-global-assign": Array [
"error",
],
"no-import-assign": Array [
"off",
],
"no-inner-declarations": Array [
"error",
],
Expand Down Expand Up @@ -582,9 +525,6 @@ Object {
"no-self-assign": Array [
"error",
],
"no-setter-return": Array [
"off",
],
"no-shadow": Array [
"off",
],
Expand Down Expand Up @@ -639,9 +579,6 @@ Object {
"no-useless-escape": Array [
"off",
],
"no-var": Array [
"error",
],
"no-whitespace-before-property": Array [
"off",
],
Expand Down Expand Up @@ -675,12 +612,6 @@ Object {
"prefer-const": Array [
"warn",
],
"prefer-rest-params": Array [
"error",
],
"prefer-spread": Array [
"error",
],
"prefer-template": Array [
"warn",
],
Expand Down
6 changes: 3 additions & 3 deletions packages/eslint-config-wantedly-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"version": "2.8.3",
"author": "Yuki Yamada <[email protected]>",
"dependencies": {
"@typescript-eslint/eslint-plugin": "^5.1.0",
"@typescript-eslint/parser": "^5.1.0",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"eslint": "^8.7.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.4",
Expand All @@ -18,7 +18,7 @@
"eslint-plugin-wantedly": "^2.8.3"
},
"peerDependencies": {
"typescript": ">=3.3.1 <4.5.0"
"typescript": ">=3.3.1 <4.6.0"
},
"homepage": "https://github.com/wantedly/frolint",
"keywords": [
Expand Down
3 changes: 1 addition & 2 deletions packages/eslint-config-wantedly-typescript/without-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module.exports = {
env: {
browser: true,
es6: true,
"jest/globals": true,
node: true,
},
globals: {
Expand All @@ -17,7 +16,7 @@ module.exports = {
},
sourceType: "module",
},
plugins: ["import", "jsx-a11y", "jest", "prettier", "@typescript-eslint", "use-macros"],
plugins: ["import", "jsx-a11y", "prettier", "@typescript-eslint", "use-macros"],
rules: {
"array-callback-return": "off",
"arrow-body-style": ["off"],
Expand Down
Loading

0 comments on commit 4efdd69

Please sign in to comment.