Skip to content

Commit

Permalink
chore(@tabnews/config): update to v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aprendendofelipe committed Oct 10, 2024
1 parent 3d4a70a commit fbb4d1f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 27 deletions.
11 changes: 1 addition & 10 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
import defaultConfig from '@tabnews/config/eslint';

const config = [
...defaultConfig,
{
ignores: ['**/.next/**', '**/__snapshots__/*', '**/dist/*'],
},
];

export default config;
export { default } from '@tabnews/config/eslint';
11 changes: 1 addition & 10 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
const config = {
'*.{js,mjs,cjs,jsx}': (stagedFiles) => [
`eslint --fix ${stagedFiles.join(' ')}`,
`prettier --write ${stagedFiles.join(' ')}`,
],
'*.{json,md}': (stagedFiles) => [`prettier --write ${stagedFiles.join(' ')}`],
'**/package.json': () => ['npm --prefix ./ install', 'git add package-lock.json'],
};

export default config;
export { npm as default } from '@tabnews/config/lint-staged';
8 changes: 4 additions & 4 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test": "tn test",
"test:run": "tn test run",
"coverage": "tn test --coverage",
"lint": "eslint . && prettier --check .",
"lint": "eslint . --max-warnings 0 && prettier --check .",
"format": "eslint --fix . && prettier --write .",
"commit": "cz",
"prepare": "husky",
Expand All @@ -24,7 +24,7 @@
"devDependencies": {
"@commitlint/cli": "19.5.0",
"@commitlint/config-conventional": "19.5.0",
"@tabnews/config": "0.1.0",
"@tabnews/config": "0.2.0",
"@testing-library/dom": "10.4.0",
"@testing-library/react": "16.0.1",
"@vitejs/plugin-react-swc": "3.7.1",
Expand Down
1 change: 0 additions & 1 deletion vitest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import createConfig from '@tabnews/config/vitest';

const config = createConfig({
test: {
isolate: true,
coverage: {
exclude: ['./*.*', '**/dist/*.*'],
},
Expand Down

0 comments on commit fbb4d1f

Please sign in to comment.