diff --git a/packages/eslint-plugin-sui/src/index.js b/packages/eslint-plugin-sui/src/index.js index 38072d921..1620724c4 100644 --- a/packages/eslint-plugin-sui/src/index.js +++ b/packages/eslint-plugin-sui/src/index.js @@ -15,6 +15,6 @@ module.exports = { 'serialize-deserialize': SerializeDeserialize, commonjs: CommonJS, decorators: Decorators, - layersArch: LayersArch + 'layers-arch': LayersArch } } diff --git a/packages/sui-lint/eslintrc.js b/packages/sui-lint/eslintrc.js index c9b234d77..de5f356b0 100644 --- a/packages/sui-lint/eslintrc.js +++ b/packages/sui-lint/eslintrc.js @@ -175,7 +175,8 @@ module.exports = { 'react-hooks', 'simple-import-sort', 'jest', - 'jest-dom' + 'jest-dom', + 'sui' ], rules: { ...REACT_RULES, @@ -198,17 +199,20 @@ module.exports = { 'prefer-regex-literals': RULES.WARNING, 'prettier/prettier': [RULES.ERROR, prettierOptions], 'simple-import-sort/imports': [RULES.WARNING, {groups: IMPORT_SORT_GROUPS}], - 'react/jsx-no-bind': RULES.OFF + 'react/jsx-no-bind': RULES.OFF, + 'sui/commonjs': RULES.WARNING, + 'sui/layers-arch': RULES.WARNING }, overrides: [ - // { - // files: ['**/domain/src/**'], - // plugins: ['sui'], - // rules: { - // 'sui/factory-pattern': RULES.WARNING, - // 'sui/serialize-deserialize': RULES.WARNING - // } - // }, + { + files: ['**/domain/src/**', 'domain/src/**'], + plugins: ['sui'], + rules: { + 'sui/factory-pattern': RULES.WARNING, + 'sui/serialize-deserialize': RULES.WARNING, + 'sui/decorators': RULES.WARNING + } + }, { files: ['**/*.+(ts|tsx)'], extends: ['standard-with-typescript', 'standard-react', 'prettier'], diff --git a/packages/sui-lint/eslintrc.ts.js b/packages/sui-lint/eslintrc.ts.js index 985ac0dda..de5f356b0 100644 --- a/packages/sui-lint/eslintrc.ts.js +++ b/packages/sui-lint/eslintrc.ts.js @@ -175,8 +175,8 @@ module.exports = { 'react-hooks', 'simple-import-sort', 'jest', - 'jest-dom' - // 'sui' + 'jest-dom', + 'sui' ], rules: { ...REACT_RULES, @@ -199,11 +199,20 @@ module.exports = { 'prefer-regex-literals': RULES.WARNING, 'prettier/prettier': [RULES.ERROR, prettierOptions], 'simple-import-sort/imports': [RULES.WARNING, {groups: IMPORT_SORT_GROUPS}], - 'react/jsx-no-bind': RULES.OFF - // 'sui/factory-pattern': RULES.WARNING, - // 'sui/serialize-deserialize': RULES.WARNING + 'react/jsx-no-bind': RULES.OFF, + 'sui/commonjs': RULES.WARNING, + 'sui/layers-arch': RULES.WARNING }, overrides: [ + { + files: ['**/domain/src/**', 'domain/src/**'], + plugins: ['sui'], + rules: { + 'sui/factory-pattern': RULES.WARNING, + 'sui/serialize-deserialize': RULES.WARNING, + 'sui/decorators': RULES.WARNING + } + }, { files: ['**/*.+(ts|tsx)'], extends: ['standard-with-typescript', 'standard-react', 'prettier'],