Skip to content

Commit

Permalink
feat: add config for typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
vladholubiev committed Mar 28, 2019
1 parent 4077190 commit 24d66ae
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@
"backend.js",
"base.js",
"frontend.js",
"meteor.js"
"meteor.js",
"typescript.js"
],
"main": "base.js",
"keywords": [
"eslint",
"eslintconfig"
],
"dependencies": {
"@typescript-eslint/eslint-plugin": "1.5.0",
"babel-eslint": "10.0.1",
"eslint-config-prettier": "4.1.0",
"eslint-plugin-babel": "5.3.0",
Expand Down
25 changes: 25 additions & 0 deletions typescript.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const paddingLineBetweenStatements = require('./rules/padding-line-between-statements');

module.exports = {
extends: [
'plugin:@typescript-eslint/recommended',
'eslint:recommended',
'prettier',
'prettier/@typescript-eslint'
],
plugins: ['@typescript-eslint', 'prettier'],
env: {
node: true,
jest: true,
es6: true
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module'
},
rules: {
'prettier/prettier': 'error',
'padding-line-between-statements': paddingLineBetweenStatements,
'@typescript-eslint/no-use-before-define': 0
}
};

0 comments on commit 24d66ae

Please sign in to comment.