Move the shared ESLint plugin/config into the monorepo (#24670)
* Move the shared ESLint plugin/config into the monorepo * Add peer dependencies to ESLint plugin
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
def164f790
Коммит
ff929e4a15
21
webapp/platform/eslint-plugin/index.js
Обычный файл
21
webapp/platform/eslint-plugin/index.js
Обычный файл
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
configs: {
|
||||
base: {
|
||||
extends: [
|
||||
require.resolve('./configs/.eslintrc.json'),
|
||||
],
|
||||
},
|
||||
react: {
|
||||
extends: [
|
||||
require.resolve('./configs/.eslintrc.json'),
|
||||
require.resolve('./configs/.eslintrc-react.json'),
|
||||
],
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'no-dispatch-getstate': require('./rules/no-dispatch-getstate'),
|
||||
'use-external-link': require('./rules/use-external-link'),
|
||||
},
|
||||
};
|
||||
Ссылка в новой задаче
Block a user