Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
eslint-config-squarespace
Advanced tools
Provides the universal configuration for eslint at Squarespace.
$ npm install --save-dev eslint-config-squarespace babel-eslint
Then:
add "extends": "eslint-config-squarespace" to your .eslintrc
{
"extends": "eslint-config-squarespace/vanilla",
"env": {
"browser": true,
"mocha": true,
"node": true
}
}
$ npm install --save-dev eslint-config-squarespace babel-eslint eslint-plugin-react
{
"extends": "squarespace",
"env": {
"browser": true,
"mocha": true,
"node": true
},
"plugins": [
"react"
]
}
You may add eslint config to a webpack build process by using a preloader and some eslint config. There should be no need to reference this config file provided the .eslintrc 'extends' property is set.
$ npm install --save eslint-loader
// webpack.config.js
module: {
eslint: {
configFile: path.join(pathsToESlint, '.eslintrc'),
failOnError: true
},
module: {
preLoaders: [
{
test: /\.jsx?$/,
loader: 'eslint',
include: pathsToFiles
}
],
..
}
The webpack plugin for pre-linting is notoriously slow, because it can not leverage and form of caching available to either eslint or webpack. If it is too slow, try moving it to the npm command that starts the webpack build.
Global CLI installations of eslint cannot find local modules. This is expected behavior. Tools or scripts that rely on such global installations must be rewritten or modified to find the correct node_modules folder.
If you are using syntastic, adding the following to your .vimrc
should fix eslint.
" Kludge to fix global/local.
let g:syntastic_javascript_checkers = ['eslint']
let local_eslint = finddir('node_modules', '.;') . '/.bin/eslint'
if matchstr(local_eslint, "^\/\\w") == ''
let local_eslint = getcwd() . "/" . local_eslint
endif
if executable(local_eslint)
let g:syntastic_javascript_eslint_exec = local_eslint
endif
Apache-2 copyright Squarespace
FAQs
Eslint shareable configuration for Squarespace
The npm package eslint-config-squarespace receives a total of 6 weekly downloads. As such, eslint-config-squarespace popularity was classified as not popular.
We found that eslint-config-squarespace demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.