eslint-plugin-civet
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -9,2 +9,3 @@ // source/index.civet | ||
function civet(options = { js: true }) { | ||
options.outputExtension ??= ".jsx"; | ||
function preprocess(code, filename) { | ||
@@ -18,3 +19,3 @@ const { code: text, sourceMap } = Civet.compile(code, { | ||
sourceMaps.set(filename, sourceMap); | ||
return [{ text, filename }]; | ||
return [{ text, filename: filename + options.outputExtension }]; | ||
} | ||
@@ -85,10 +86,3 @@ function postprocess(_messages, filename) { | ||
}, | ||
processor: "civet/civet", | ||
languageOptions: { | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true | ||
} | ||
} | ||
} | ||
processor: "civet/civet" | ||
}; | ||
@@ -95,0 +89,0 @@ function makeConfig(config) { |
@@ -6,5 +6,5 @@ import { | ||
// source/ts.civet | ||
import {} from "@danielx/civet"; | ||
import ts from "typescript-eslint"; | ||
function civet2(options = { js: false }) { | ||
options.outputExtension ??= ".tsx"; | ||
const plugin = civet(options); | ||
@@ -11,0 +11,0 @@ function makeConfig(config) { |
{ | ||
"name": "eslint-plugin-civet", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "ESLint plugin for Civet code", | ||
@@ -21,2 +21,3 @@ "exports": { | ||
"build": "civet --no-config esbuild.civet", | ||
"prepublishOnly": "yarn build", | ||
"test": "mocha" | ||
@@ -23,0 +24,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
20992
539