mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Build: Improve ESLint configuration (#3188)
* Bump eslint-config-jquery package to 0.1.4 version * Add subtask "dist" to "eslint" task and add it to the build task list * Make gitignore globs more flexible for the "dist" folder Fixes gh-3169
This commit is contained in:
parent
58c6ca9822
commit
25d8ccd111
5
.gitignore
vendored
5
.gitignore
vendored
@ -10,7 +10,10 @@
|
|||||||
|
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|
||||||
/dist/jquery*
|
# Ignore everything in dist folder except for eslint config
|
||||||
|
/dist/*
|
||||||
|
!/dist/.eslintrc
|
||||||
|
|
||||||
/node_modules
|
/node_modules
|
||||||
|
|
||||||
/test/node_smoke_tests/lib/ensure_iterability.js
|
/test/node_smoke_tests/lib/ensure_iterability.js
|
||||||
|
@ -109,6 +109,7 @@ module.exports = function( grunt ) {
|
|||||||
quiet: true
|
quiet: true
|
||||||
},
|
},
|
||||||
all: ".",
|
all: ".",
|
||||||
|
dist: "dist/jquery.js",
|
||||||
dev: [ "src/**/*.js", "Gruntfile.js", "test/**/*.js", "build/**/*.js" ]
|
dev: [ "src/**/*.js", "Gruntfile.js", "test/**/*.js", "build/**/*.js" ]
|
||||||
},
|
},
|
||||||
testswarm: {
|
testswarm: {
|
||||||
@ -201,7 +202,7 @@ module.exports = function( grunt ) {
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
grunt.registerTask( "default", [ "dev", "test_fast", "compare_size" ] );
|
grunt.registerTask( "default", [ "dev", "eslint:dist", "test_fast", "compare_size" ] );
|
||||||
|
|
||||||
grunt.registerTask( "precommit_lint", [ "newer:jsonlint", "newer:eslint:all" ] );
|
grunt.registerTask( "precommit_lint", [ "newer:jsonlint", "newer:eslint:all" ] );
|
||||||
};
|
};
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
"commitplease": "2.3.1",
|
"commitplease": "2.3.1",
|
||||||
"core-js": "2.2.2",
|
"core-js": "2.2.2",
|
||||||
"cross-spawn": "2.2.3",
|
"cross-spawn": "2.2.3",
|
||||||
"eslint-config-jquery": "0.1.2",
|
"eslint-config-jquery": "0.1.6",
|
||||||
"grunt": "1.0.1",
|
"grunt": "1.0.1",
|
||||||
"grunt-babel": "6.0.0",
|
"grunt-babel": "6.0.0",
|
||||||
"grunt-cli": "1.2.0",
|
"grunt-cli": "1.2.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user