Last active
October 19, 2019 17:22
-
-
Save meseven/ded11b0195e344ab855dca969d1153be to your computer and use it in GitHub Desktop.
ESLint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"sourceType": "module" | |
}, | |
"rules": { | |
"object-curly-spacing": ["error", "always"], | |
"prefer-arrow-callback": "error", | |
"no-console": 0, | |
"indent": [ | |
"error", | |
"tab" | |
], | |
"linebreak-style": [ | |
"error", | |
"unix" | |
], | |
"quotes": [ | |
"error", | |
"double" | |
], | |
"semi": [ | |
"error", | |
"always" | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fnc = function (callback) { | |
callback(); | |
}; | |
fnc(() => { | |
console.log("selam"); | |
}); | |
const obj = { a:1, b:2, c:2 }; | |
console.log(obj); | |
/* eslint-disable */ | |
const data = 2; | |
const data2 = 3; | |
/* eslint-enable */ | |
const data3 = 4; | |
console.log(data3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment