Skip to content

Commit 2e1dc27

Browse files
committed
Initial commit
0 parents  commit 2e1dc27

File tree

5 files changed

+1718
-0
lines changed

5 files changed

+1718
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# eslint-config
2+
3+
> ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-configs.html) for my projects.
4+
5+
6+
## Installation
7+
8+
```
9+
$ npm install -D eslint @matt-fidd/eslint-config
10+
```
11+
12+
## Usage
13+
14+
Once the `@matt-fidd/eslint-config` package is installed, you can use it by adding `@matt-fidd` to the [`extends`](http://eslint.org/docs/user-guide/configuring#extending-configuration-files) section of your [ESLint configuration](http://eslint.org/docs/user-guide/configuring).
15+
16+
```js
17+
{
18+
...
19+
"extends": "@matt-fidd",
20+
...
21+
}
22+
```
23+

index.js

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
'use strict';
2+
3+
module.exports = {
4+
'rules': {
5+
'indent': [
6+
'error',
7+
'tab',
8+
{
9+
'SwitchCase': 1
10+
}
11+
],
12+
'linebreak-style': [
13+
'error',
14+
'unix'
15+
],
16+
'quotes': [
17+
'error',
18+
'single'
19+
],
20+
'semi': [
21+
'error',
22+
'always'
23+
],
24+
'no-unused-vars': [
25+
'error',
26+
{
27+
'vars': 'local',
28+
'argsIgnorePattern': '^_',
29+
'varsIgnorePattern': '^_',
30+
}
31+
],
32+
'max-len': [
33+
'error',
34+
{
35+
'code': 80
36+
}
37+
],
38+
'array-bracket-spacing': [
39+
'error',
40+
'always'
41+
],
42+
'object-curly-spacing': [
43+
'error',
44+
'always'
45+
],
46+
'no-extra-parens': [
47+
'error'
48+
],
49+
'no-template-curly-in-string': [
50+
'error'
51+
],
52+
'no-unreachable-loop': [
53+
'error'
54+
],
55+
'block-scoped-var': [
56+
'error'
57+
],
58+
'curly': [
59+
'error',
60+
'multi-or-nest',
61+
'consistent'
62+
],
63+
'no-else-return': [
64+
'error'
65+
],
66+
'no-empty-function': [
67+
'error'
68+
],
69+
'no-self-compare': [
70+
'error'
71+
],
72+
'no-useless-return': [
73+
'error'
74+
],
75+
'brace-style': [
76+
'error'
77+
],
78+
'strict': [
79+
'error',
80+
'global'
81+
]
82+
}
83+
};

0 commit comments

Comments
 (0)