Skip to content

Commit

Permalink
Added basic eslint configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
karliss committed Dec 31, 2016
1 parent bc148de commit e74ee5c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cms/server/admin/static/jq/*
cms/server/admin/static/sh/*
cms/server/static/jq/*
cms/server/contest/static/js/bootstrap.js
cmsranking/static/lib/*
24 changes: 24 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"env": {
"browser": true,
"jquery": true
},
"extends": "eslint:recommended",
"rules": {
"indent": ["warn", 4],
"linebreak-style": ["error", "unix"],
"quotes": ["warn", "double"],
"eol-last": ["error"],

"eqeqeq": ["warn", "smart"],
"no-eval": ["error"],
"no-extend-native": ["error"],
"no-new-func": ["error"],
"no-new": ["error"],
"no-self-compare": ["error"],
"no-useless-escape": ["error"],

"no-label-var": ["error"],
"no-shadow-restricted-names": ["error"]
}
}

0 comments on commit e74ee5c

Please sign in to comment.