Skip to content

Commit

Permalink
Merge pull request smaranjitghose#1021 from ashuvssut/lint-config
Browse files Browse the repository at this point in the history
Add Linters config files
  • Loading branch information
smaranjitghose authored May 31, 2021
2 parents 3f649c3 + 4d26488 commit 6c789b1
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
jest: true,
},
extends: ["eslint:recommended", "plugin:react/recommended"],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["react"],
rules: {
"react/prop-types": "off",
"no-mixed-spaces-and-tabs": 0,
"react/no-unescaped-entities": 0,
indent: ["error", "tab"],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
},
env: {
browser: true,
es2021: true,
node: true,
jest: true,
},
extends: ["eslint:recommended", "plugin:react/recommended"],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["react"],
rules: {
"react/prop-types": "off",
"no-mixed-spaces-and-tabs": 0,
"react/no-unescaped-entities": 0,
indent: ["error", "tab", { SwitchCase: 1 }],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
},
};
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Ignore:
build
/public/images
/public/favicon
/public/*.png
/public/*.jpg
src/fonts
.gitignore
.prettierignore
15 changes: 15 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
bracketSpacing: true,
jsxBracketSameLine: false,
singleQuote: false,
trailingComma: 'all',
arrowParens: 'avoid',
parser: 'json5',
endOfLine: 'lf',
embeddedLanguageFormatting: 'auto',
printWidth: 80,
proseWrap: "preserve",
tabWidth: 2,
semi : true,
useTabs: true,
};

0 comments on commit 6c789b1

Please sign in to comment.