cli: add and use app:lint + include default eslint config in cli

This commit is contained in:
Patrik Oldsberg
2020-03-18 15:09:48 +01:00
parent ee34b77b35
commit a711dc21b2
7 changed files with 82 additions and 63 deletions
+4 -31
View File
@@ -16,39 +16,12 @@ const copyrightTemplate = `/*
`;
const base = require('@spotify-backstage/cli/config/eslint');
module.exports = {
extends: [
'@spotify/eslint-config-base',
'@spotify/eslint-config-react',
'@spotify/eslint-config-typescript',
'prettier',
'prettier/react',
'prettier/@typescript-eslint',
'plugin:jest/recommended',
],
parser: '@typescript-eslint/parser',
plugins: ['notice'],
env: {
jest: true,
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
settings: {
react: {
version: 'detect',
},
},
// Adding this to .eslintignore just doesn't even, let me know if you can make it work ._.
ignorePatterns: [
'**/*_pb.js',
'**/*_pb.d.ts',
'**/dist/**',
'**/cjs/**',
'**/esm/**',
],
...base,
rules: {
...base.rules,
'notice/notice': [
'error',
{