Skip to content

Commit

Permalink
build: More eslint updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joncursi committed Sep 26, 2024
1 parent 97a03fd commit 7ee0e2b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 71 deletions.
59 changes: 1 addition & 58 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,65 +6,8 @@
*/

module.exports = {
extends: [
'@actinc/eslint-config',
'plugin:mdx/recommended',
'plugin:storybook/recommended',
],
overrides: [
{
files: ['./**/*.stories.template.tsx', './**/*.stories.tsx'],
rules: {
'react-hooks/rules-of-hooks': 'off',
'storybook/story-exports': 'off',
},
},
],
extends: ['@actinc/eslint-config'],
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
'import/order': [
'error',
{
alphabetize: {
caseInsensitive: true,
order: 'asc',
},
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
'object',
'type',
],
'newlines-between': 'always',
pathGroups: [
{
group: 'internal',
pattern: '~/**',
},
{
group: 'internal',
pattern: '~/icons/**',
},
{
group: 'external',
pattern: '@**',
},
],
warnOnUnassignedImports: true,
},
],
'react/boolean-prop-naming': 'off',
'react/react-in-jsx-scope': 'off',
'react/require-default-props': 'off',
},
settings: {
'mdx/code-blocks': true,
// optional, if you want to disable language mapper, set it to `false`
// if you want to override the default language mapper inside, you can provide your own
'mdx/language-mapper': {},
},
};
21 changes: 11 additions & 10 deletions package-lock.json

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

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"description": "Design Language System (DLS) for ACT & Encoura front-end projects.",
"devDependencies": {
"@actinc/eslint-config": "4.11.0",
"@actinc/eslint-config": "4.13.0",
"@babel/cli": "7.25.6",
"@babel/core": "7.25.2",
"@babel/plugin-proposal-decorators": "7.24.7",
Expand Down Expand Up @@ -97,8 +97,6 @@
"clean-publish": "5.0.0",
"core-js": "3.38.1",
"cross-env": "7.0.3",
"eslint-plugin-mdx": "3.1.5",
"eslint-plugin-storybook": "0.8.0",
"flat": "6.0.1",
"husky": "9.1.5",
"isomorphic-fetch": "3.0.0",
Expand Down

0 comments on commit 7ee0e2b

Please sign in to comment.