Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: git hooks and lint setup in monorepo #226

Merged
merged 5 commits into from
Oct 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
src/**/*.stories.tsx
node_modules/
node_modules/
packages/**/dist/
packages/**/react/
packages/**/.vuepress/
packages/**/loader/
packages/**/node_modules/
packages/**/www/
packages/**/crayons-react/
docs/
packages/**/src/**/*.stories.tsx
49 changes: 34 additions & 15 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,50 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended'],
parserOptions: {
ecmaVersion: 'latest', // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
useJSXTextNode: true,
ecmaFeatures: {
jsx: true,
},
project: './tsconfig.json',
},
env: {
browser: true,
jest: true,
amd: true,
node: true,
},
extends: [
'plugin:vue/essential',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jsx-a11y/recommended',
'plugin:prettier/recommended',
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest', // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
useJSXTextNode: true,
ecmaFeatures: {
jsx: true,
},
project: './tsconfig.json',
},
env: {
browser: true,
jest: true,
node: true,
},
extends: [
'plugin:vue/essential',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jsx-a11y/recommended',
'plugin:prettier/recommended',
],
plugins: ['@typescript-eslint', 'jsx-a11y'],
rules: {
'@typescript-eslint/no-unused-vars': 0,
'react/no-jsx-bind': 0,
'jsx-quotes': [1, 'prefer-single'],
},
},
],
plugins: ['@typescript-eslint', 'jsx-a11y'],
rules: {
'@typescript-eslint/no-unused-vars': 0,
'react/no-jsx-bind': 0,
'jsx-quotes': [1, 'prefer-single'],
},
};
15 changes: 9 additions & 6 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
**/*.js
**/*.ts
**/*.tsx
node_modules
packages/**/node_modules

node_modules/
packages/**/dist/
packages/**/react/
packages/**/loader/
packages/**/node_modules/
packages/**/www/
packages/**/crayons-react/
docs/
packages/**/src/**/*.stories.tsx
Loading