Skip to content

Commit

Permalink
fluid-projectGH-17: Updated to use plugin for formatting rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
the-t-in-rtf committed Nov 3, 2023
1 parent 8ee4e39 commit e326f6e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
29 changes: 16 additions & 13 deletions .eslintrc-fluid.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"plugins": [
"@stylistic/js"
],
"env": {
"browser": true,
"jquery": true
Expand All @@ -8,29 +11,29 @@
},
"rules": {
"block-scoped-var": "error",
"comma-dangle": [
"@stylistic/js/comma-dangle": [
"error",
"never"
],
"comma-style": [
"@stylistic/js/comma-style": [
"error",
"last"
],
"curly": [
"error",
"all"
],
"eol-last": "error",
"@stylistic/js/eol-last": "error",
"eqeqeq": [
"error",
"allow-null"
],
"indent": [
"@stylistic/js/indent": [
"error",
4
],
"keyword-spacing": "error",
"linebreak-style": ["error", "unix"],
"@stylistic/js/keyword-spacing": "error",
"@stylistic/js/linebreak-style": ["error", "unix"],
"new-cap": [
"error",
{
Expand Down Expand Up @@ -62,31 +65,31 @@
"no-redeclare": "error",
"no-script-url": "error",
"no-sequences": "error",
"no-trailing-spaces": "error",
"@stylistic/js/no-trailing-spaces": "error",
"no-undef": "error",
"no-unused-vars": "error",
"no-with": "error",
"quotes": [
"@stylistic/js/quotes": [
"error",
"double"
],
"semi": [
"@stylistic/js/semi": [
"error",
"always"
],
"space-before-blocks": [
"@stylistic/js/space-before-blocks": [
"error",
"always"
],
"space-before-function-paren": [
"@stylistic/js/space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never"
}
],
"space-infix-ops": "error",
"space-unary-ops": [
"@stylistic/js/space-infix-ops": "error",
"@stylistic/js/space-unary-ops": [
"error",
{
"words": true,
Expand Down
Empty file added foobar
Empty file.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ https://github.com/fluid-project/eslint-config-fluid/raw/main/LICENSE.txt
/* eslint-env node */
"use strict";

// foo

var path = require("path");
var configPath = path.join(__dirname, ".eslintrc.json");

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@
},
"homepage": "http://fluidproject.org",
"dependencies": {
"eslint-plugin-jsdoc": "39.3.13"
"eslint-plugin-jsdoc": "39.3.13",
"@stylistic/eslint-plugin-js": "1.0.0"
},
"devDependencies": {
"grunt": "1.5.3",
"grunt-eslint": "24.0.0",
"grunt": "1.6.1",
"grunt-eslint": "24.3.0",
"grunt-jsonlint": "2.1.3"
}
}

0 comments on commit e326f6e

Please sign in to comment.