Commit b44b841d authored by Kannan V M's avatar Kannan V M
Browse files

Add eslint

parent 22f5983e
module.exports = {
env: {
node: true,
es2021: true,
},
extends: ['airbnb-base'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'no-unused-expressions': 'warn',
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'never',
exports: 'never',
functions: 'never',
}],
},
};
module.exports = {
"src/**/\*.js": "eslint --cache --fix",
};
This diff is collapsed.
......@@ -19,5 +19,10 @@
"dependencies": {
"express": "^4.17.1",
"socket.io": "^4.3.2"
},
"devDependencies": {
"eslint": "^8.2.0",
"eslint-config-airbnb-base": "^15.0.0",
"lint-staged": "^11.2.6"
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment