-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1223 from bryceosterhaus/eslintFlatConfig
fix(stylelint-plugin): provide plugin via cjs with no build step
- Loading branch information
Showing
13 changed files
with
82 additions
and
459 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
{ | ||
"name": "@liferay/stylelint-plugin", | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "./dist/index.js", | ||
"main": "./index.js", | ||
"scripts": { | ||
"build": "esbuild index.mjs --bundle --outdir=dist --platform=node \"--external:stylelint\"", | ||
"build": "true", | ||
"format": "liferay-workspace-scripts format", | ||
"format:check": "liferay-workspace-scripts format:check", | ||
"postversion": "liferay-workspace-scripts publish", | ||
"preversion": "liferay-workspace-scripts ci" | ||
}, | ||
"version": "1.0.0", | ||
"devDependencies": { | ||
"esbuild": "^0.21.2", | ||
"stylelint": "^16.6.1" | ||
} | ||
"version": "1.0.0" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com> | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
const stylelint = require('stylelint'); | ||
|
||
const noBlockComments = require('./rules/no-block-comments.js'); | ||
const noImportExtension = require('./rules/no-import-extension.js'); | ||
const singleImports = require('./rules/single-imports.js'); | ||
const sortImports = require('./rules/sort-imports.js'); | ||
const trimComments = require('./rules/trim-comments.js'); | ||
|
||
const rulesPlugins = [ | ||
noBlockComments, | ||
noImportExtension, | ||
singleImports, | ||
sortImports, | ||
trimComments, | ||
].map((rule) => stylelint.createPlugin(rule.ruleName, rule)); | ||
|
||
module.exports = rulesPlugins; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.