Skip to content

Commit

Permalink
feat(code base): add eslint
Browse files Browse the repository at this point in the history
add new eslint formatter
  • Loading branch information
AlaaN-Smadi committed Nov 7, 2024
1 parent f206a8c commit 2b1ea16
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Jasmine-Project/
37 changes: 37 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"extends": [
"eslint:recommended",
"airbnb-base"
],
"rules": {
"semi": [
2,
"always"
],
"no-underscore-dangle": 0,
"no-param-reassign": 0,
"max-classes-per-file": 0,
"no-unused-vars": 0,
"no-undef": 0,
"no-console": 0,
"no-prototype-builtins": 0,
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"buildfire": true,
"Setting": true,
"AuthManager": true,
"state": true,
"getLanguage": true,
"Settings": true,
"AnalyticsManager": true
}
}
39 changes: 39 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "leaderboardPlugin",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "gulp && cd ../ && rm -rf leaderboardPlugin.zip && zip -r leaderboardPlugin.zip leaderboardPlugin_release && rm -rf leaderboardPlugin_release",
"lint": "eslint --fix ."
},
"repository": {
"type": "git",
"url": "git+https://github.com/BuildFire/leaderboardPlugin.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@babel/core": "^7.22.5",
"@babel/preset-env": "^7.22.5",
"autoprefixer": "^10.4.14",
"cssnano": "^6.0.1",
"eslint": "^7.2.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.31.0",
"fancy-log": "^2.0.0",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-concat": "^2.6.1",
"gulp-eslint": "^6.0.0",
"gulp-html-replace": "^1.6.2",
"gulp-htmlmin": "^5.0.1",
"gulp-imagemin": "^3.3.0",
"gulp-postcss": "^9.0.1",
"gulp-prettier": "^4.0.0",
"gulp-print": "^5.0.2",
"gulp-terser": "^2.1.0",
"rimraf": "^5.0.1"
}
}

0 comments on commit 2b1ea16

Please sign in to comment.