Skip to content

Commit

Permalink
refactor: replace custom eslint config with eslint-plugin-contentful-…
Browse files Browse the repository at this point in the history
…apps
  • Loading branch information
t-col committed Sep 17, 2024
1 parent 8dbb9fa commit a935986
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 39 deletions.
20 changes: 0 additions & 20 deletions ally.js

This file was deleted.

2 changes: 1 addition & 1 deletion apps/ai-content-generator/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/ai-content-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@vitejs/plugin-react": "4.0.4",
"@vitest/coverage-v8": "0.34.6",
"eslint": "^8.46.0",
"eslint-plugin-jsx-a11y": "^6.9.0",
"@contentful/eslint-plugin-contentful-apps": "^0.1.4",
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-react-hooks": "^4.6.0",
"happy-dom": "6.0.4",
Expand Down
3 changes: 1 addition & 2 deletions apps/ai-image-generator/frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ module.exports = {
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
require.resolve('../../../ally.js'),
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'react'],
plugins: ['@typescript-eslint', 'react', '@contentful/eslint-plugin-contentful-apps'],
rules: {
'react/no-unknown-property': ['error', { ignore: ['css'] }],
},
Expand Down
2 changes: 1 addition & 1 deletion apps/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"cross-env": "7.0.3",
"esbuild": "^0.23.0",
"eslint": "^8.46.0",
"eslint-plugin-jsx-a11y": "^6.9.0",
"@contentful/eslint-plugin-contentful-apps": "^0.1.4",
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-react-hooks": "^4.6.0",
"typescript": "4.9.5"
Expand Down
2 changes: 1 addition & 1 deletion apps/bedrock-content-generator/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/bedrock-content-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@vitejs/plugin-react": "4.0.4",
"@vitest/coverage-v8": "0.34.6",
"eslint": "^8.46.0",
"eslint-plugin-jsx-a11y": "^6.9.0",
"@contentful/eslint-plugin-contentful-apps": "^0.1.4",
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-react-hooks": "^4.6.0",
"happy-dom": "6.0.4",
Expand Down
3 changes: 1 addition & 2 deletions apps/microsoft-teams/frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
require.resolve('../../../ally.js'),
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'react'],
plugins: ['@typescript-eslint', 'react', '@contentful/eslint-plugin-contentful-apps'],
rules: {},
settings: {
react: {
Expand Down
2 changes: 1 addition & 1 deletion apps/microsoft-teams/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/microsoft-teams/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@vitejs/plugin-react": "4.0.1",
"@vitest/coverage-v8": "^0.34.6",
"eslint": "^8.52.0",
"eslint-plugin-jsx-a11y": "^6.9.0",
"@contentful/eslint-plugin-contentful-apps": "^0.1.4",
"eslint-plugin-react": "^7.33.2",
"happy-dom": "9.20.3",
"msw": "^2.2.0",
Expand Down
8 changes: 2 additions & 6 deletions apps/mux/frontend/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
require.resolve('../../../ally.js'),
],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
plugins: ['@typescript-eslint', '@contentful/eslint-plugin-contentful-apps'],
root: true,
env: {
node: true,
Expand Down
2 changes: 1 addition & 1 deletion apps/slack/frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module.exports = {
'plugin:react-hooks/recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
require.resolve('../../../ally.js'),
],
parser: '@typescript-eslint/parser',
rules: {
Expand All @@ -30,4 +29,5 @@ module.exports = {
version: 'detect',
},
},
plugins: ['@contentful/eslint-plugin-contentful-apps'],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"prettier": "^2.8.8"
},
"scripts": {
"bootstrap": "lerna bootstrap --no-ci --since master --include-dependencies",
"bootstrap": "lerna bootstrap --no-ci --since master",
"bootstrap:ci": "lerna bootstrap --ci --concurrency=1 --since=${SINCE:-master} --include-dependencies",
"clean": "lerna clean",
"lint": "lerna run lint --concurrency=3 --since=${SINCE:-master} --include-dependencies",
Expand Down

0 comments on commit a935986

Please sign in to comment.