Skip to content

Instantly share code, notes, and snippets.

@kcelsi
Created October 25, 2021 09:44
Show Gist options
  • Save kcelsi/d94c48f9b141eca467cbbaf347edcdcc to your computer and use it in GitHub Desktop.
Save kcelsi/d94c48f9b141eca467cbbaf347edcdcc to your computer and use it in GitHub Desktop.
⚙️ Settings for repo
node_modules
public
{
"printWidth": 100,
"singleQuote": true
}
module.exports = {
extends: [
'stylelint-config-airbnb',
'stylelint-config-prettier',
'stylelint-config-rational-order',
],
plugins: ['stylelint-order', 'stylelint-scss'],
rules: {},
};
module.exports = {
env: {
browser: true,
es2021: true,
},
parser: '@typescript-eslint/parser',
extends: [
'airbnb-base',
'prettier',
'plugin:prettier/recommended',
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint'],
rules: {
'react/prop-types': 0,
'import/no-unresolved': 0,
'import/extensions': 0,
'prettier/prettier': ['error', { endOfLine: 'auto' }],
camelcase: 0,
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error'],
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/ban-types': 'warn',
'@typescript-eslint/ban-ts-comment': 'warn',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'off',
'import/order': [
'error',
{
groups: ['external', 'builtin', ['sibling', 'parent'], 'index', 'object'],
},
],
'@typescript-eslint/no-unused-vars': 'error',
},
settings: {
react: {
version: 'detect',
},
},
};
install:
yarn
start:
yarn start
build:
yarn build
lint:
npx eslint .
stylelint:
npx stylelint 'src/*{.css,.scss}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment