Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
p.kabir committed May 20, 2019
1 parent 1dd1ac5 commit 5cc0374
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
trailingComma: 'es5',
singleQuote: true,
printWidth: 80,
tabWidth: 4,
semi: true,
jsxSingleQuote: true,
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: 'avoid',
parser: 'typescript',
};
72 changes: 72 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
plugins: ['eslint-plugin-import'],
rules: {
'import/newline-after-import': ['error', { count: 1 }],
'lines-between-class-members': [
'error',
'always',
{ exceptAfterSingleLine: true },
],
'padding-line-between-statements': [
'error',
{
blankLine: 'always',
prev: 'multiline-block-like',
next: '*',
},
{
blankLine: 'always',
prev: '*',
next: 'multiline-block-like',
},
{
blankLine: 'always',
prev: 'multiline-const',
next: '*',
},
{
blankLine: 'always',
prev: '*',
next: 'multiline-const',
},
{
blankLine: 'always',
prev: 'multiline-var',
next: '*',
},
{
blankLine: 'always',
prev: '*',
next: 'multiline-var',
},
{
blankLine: 'always',
prev: 'multiline-let',
next: '*',
},
{
blankLine: 'always',
prev: '*',
next: 'multiline-let',
},
{
blankLine: 'always',
prev: 'multiline-expression',
next: '*',
},
{
blankLine: 'always',
prev: '*',
next: 'multiline-expression',
},
],
},
};
14 changes: 14 additions & 0 deletions package-lock.json

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

29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "eslint-config-clean-code",
"version": "0.0.1",
"description": "ESLint Configuration for Clean Typescript Code",
"main": "index.js",
"scripts": {
"fixStyleFull": "prettier \"**/*.{ts,tsx,js,jsx}\" --write"
},
"repository": {
"type": "git",
"url": "git+https://github.com/wh1t3cAt1k/eslint-config-clean-code.git"
},
"keywords": [
"eslint",
"config",
"clean",
"code"
],
"author": "Pavel Kabir",
"license": "MIT",
"bugs": {
"url": "https://github.com/wh1t3cAt1k/eslint-config-clean-code/issues"
},
"homepage": "https://github.com/wh1t3cAt1k/eslint-config-clean-code#readme",
"devDependencies": {
"prettier": "^1.17.1"
},
"dependencies": {}
}

0 comments on commit 5cc0374

Please sign in to comment.